Commit 2b5fe4d
committed
remove an unneded allocation in roaring_bitmap_portable_serialize
Actually, in roaring_bitmap_portable_serialize.
There's no need to allocate an array for the run container bitset, then
copying into the destination buffer. Instead, write directly into the
destination buffer.1 parent 1b0e77a commit 2b5fe4d
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
| 560 | + | |
562 | 561 | | |
563 | 562 | | |
564 | 563 | | |
565 | | - | |
| 564 | + | |
566 | 565 | | |
567 | 566 | | |
568 | | - | |
569 | 567 | | |
570 | | - | |
571 | 568 | | |
572 | 569 | | |
573 | 570 | | |
| |||
0 commit comments