0
0
bleve/index/scorch/segment
Steve Yen dde6c2e01b scorch zap optimize writeRoaringWithLen()
Before this change, writeRoaringWithLen() would leverage a reused
bytes.Buffer (#A) and invoke the roaring.WriteTo() API.

But, it turns out the roaring.WriteTo() API has a suboptimal
implementation, in that underneath-the-hood it converts the roaring
bitmap to a byte buffer (using roaring.ToBytes()), and then calls
Write().  But, that Write() turns out to be an additional memcpy into
the provided bytes.Buffer (#A).

By directly invoking roaring.ToBytes(), this change to
writeRoaringWithLen() avoids the extra memory allocation and memcpy.
2018-03-06 14:59:20 -08:00
..
mem MB-28162: Provide API to estimate memory needed to run a search query 2018-03-06 13:53:42 -08:00
zap scorch zap optimize writeRoaringWithLen() 2018-03-06 14:59:20 -08:00
empty.go MB-28162: Provide API to estimate memory needed to run a search query 2018-03-06 13:53:42 -08:00
int_test.go initial version of scorch which persists index to disk 2017-12-06 18:33:47 -05:00
int.go initial version of scorch which persists index to disk 2017-12-06 18:33:47 -05:00
segment.go MB-28162: Provide API to estimate memory needed to run a search query 2018-03-06 13:53:42 -08:00