asmirnov82 opened a new pull request, #13810:
URL: https://github.com/apache/arrow/pull/13810

   Extend ArrowBuffer.BitmapBuilder with Append method overloaded with 
ReadOnlySpan<byte> parameter. 
   
   This allows to add validity bits to the builder more efficiently (especially 
for cases when initial validity bits are added to newly created empty builder). 
 More over it makes BitmapBuilder API more consistent (for example 
ArrowBuffer.Builder<T> does have such method).
   
   Currently adding new bits to existing bitmap is implemented in 
ArrayDataConcatenator, Code adds bit by bit in a cycle converting each to a 
boolean value:
   
   for (int i = 0; i < length; i++)
   {
       builder.Append(span.IsEmpty || BitUtility.GetBit(span, i));
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to