0
0
bleve/index/scorch/segment
Steve Yen 98d5d7bd81 scorch zap chunkedIntCoder optimizations
The optimizations / changes include...

- reuse of a memory buf when serializing varint's.

- reuse of a govarint.U64Base128Encoder instance, as it's a thin,
  wrapper around an underlying chunkBuf, so Reset()'s on the
  chunkBuf is enough for encoder reuse.

- chunkedIntcoder.Write() method was changed to invoke w.Write() less
  often by forming a larger, reused buf.  Profiling and analysis
  showed w.Write() was getting called a lot, often with tiny 1 or 2
  byte inputs.  The theory is w.Write() and its underlying memmove()
  can be more efficient when provided with larger bufs.

- some repeated code removal, by reusing the Close() method.
2018-02-26 14:17:09 -08:00
..
mem scorch sorts fields by name to assign fieldID's 2018-02-08 09:06:30 -08:00
zap scorch zap chunkedIntCoder optimizations 2018-02-26 14:17:09 -08:00
empty.go scorch ref-counting 2017-12-13 14:48:07 -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 Include overhead from data structures in segment's SizeInBytes 2018-01-17 11:11:44 -08:00