File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ mod builder {
306306 let words = self . current . borrow ( ) . length_in_words ( ) ;
307307 let round = ( words + ( ( 1 << 18 ) - 1 ) ) & !( ( 1 << 18 ) - 1 ) ;
308308 if round - words < round / 10 {
309- let mut alloc = Vec :: with_capacity ( 8 * words) ;
309+ let mut alloc = Vec :: with_capacity ( words) ;
310310 columnar:: bytes:: serialization:: encode ( & mut alloc, self . current . borrow ( ) . as_bytes ( ) ) ;
311311 self . pending . push_back ( Column :: Align ( alloc. into_boxed_slice ( ) ) ) ;
312312 self . current . clear ( ) ;
@@ -343,7 +343,7 @@ mod builder {
343343 if !self . current . is_empty ( ) {
344344 use columnar:: Container ;
345345 let words = self . current . borrow ( ) . length_in_words ( ) ;
346- let mut alloc = Vec :: with_capacity ( 8 * words) ;
346+ let mut alloc = Vec :: with_capacity ( words) ;
347347 columnar:: bytes:: serialization:: encode ( & mut alloc, self . current . borrow ( ) . as_bytes ( ) ) ;
348348 self . pending . push_back ( Column :: Align ( alloc. into_boxed_slice ( ) ) ) ;
349349 self . current . clear ( ) ;
You can’t perform that action at this time.
0 commit comments