0
0
bleve/search/collector
Marty Schoch 0eba2a3f0c reduce garbage created while processing facets
previously we parsed/returned large sections of the documents
back index row in order to compute facet information.  this
would require parsing the protobuf of the entire back index row.
unfortunately this creates considerable garbage.

this new version introduces a visitor/callback approach to
working with data inside the back index row.  the benefit
of this approach is that we can let the higher-level code
see values, prior to any copies of data being made or
intermediate garbage being created.  implementations of
the callback must copy any value which they would like to
retain beyond the callback.

NOTE: this approach is duplicates code from the
automatically generated protobuf code

NOTE: this approach assumes that the "field" field be serialized
before the "terms" field.  This is guaranteed by our currently
generated protobuf encoder, and is recommended by the protobuf
spec.  But, decoders SHOULD support them occuring in any order,
which we do not.
2017-03-02 17:00:46 -05:00
..
bench_test.go actually rename packages to singular, not just directory name 2016-10-02 10:29:39 -04:00
heap.go actually rename packages to singular, not just directory name 2016-10-02 10:29:39 -04:00
list.go actually rename packages to singular, not just directory name 2016-10-02 10:29:39 -04:00
search_test.go reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00
slice.go actually rename packages to singular, not just directory name 2016-10-02 10:29:39 -04:00
topn_test.go simplify, per gofmt -s recommendation 2016-10-02 12:14:53 -04:00
topn.go reduce garbage created while processing facets 2017-03-02 17:00:46 -05:00