0
0
bleve/search
Marty Schoch 60efecc8e9 cap preallocation by the collector to reasonable value
the collector has optimizations to avoid allocation and reslicing
during the common case of searching for top hits

however, in some cases users request an a very large number of
search hits to be returned (attempting to get them all)  this
caused unnecessary allocation of ram.

to address this we introduce a new constant PreAllocSizeSkipCap
it defaults the value of 1000.  if your search+skip is less than
this constant, you get the optimized behavior.  if your
search+skip is greater than this, we cap the preallcations to
this lower value.  additional space is acquired on an as needed
basis by growing the DocumentMatchPool and reslicing the
collector backing slice

applications can change the value of PreAllocSizeSkipCap to suit
their own needs

fixes #408
2016-08-31 15:25:17 -04:00
..
collectors cap preallocation by the collector to reasonable value 2016-08-31 15:25:17 -04:00
facets Make facets much faster 2016-07-17 15:31:35 -07:00
highlight more gofmt simplifications 2016-04-03 00:03:33 -04:00
scorers improved implementation to address perf regressions 2016-08-25 15:47:07 -04:00
searchers switch sort impl to use interface 2016-08-24 19:02:22 -04:00
collector.go major refactor of index/search API 2016-07-31 13:46:18 -04:00
explanation.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00
facets_builder_test.go gofmt simplifications 2016-04-02 21:54:33 -04:00
facets_builder.go adds support for more complex field sorts with object (not string) 2016-08-17 14:33:51 -07:00
levenshtein_test.go moved levenshtein code outside of fuzzy searcher 2014-12-12 13:23:06 -05:00
levenshtein.go Fix some typos 2016-01-15 05:46:27 +07:00
pool_test.go switch sort impl to use interface 2016-08-24 19:02:22 -04:00
pool.go improved implementation to address perf regressions 2016-08-25 15:47:07 -04:00
search.go improved implementation to address perf regressions 2016-08-25 15:47:07 -04:00
sort.go cache values to avoid dynamic dispatch inside hot loop 2016-08-25 16:24:26 -04:00
util_test.go add newline between license and package 2014-09-02 10:54:50 -04:00
util.go Fix typos in comments and strings 2014-12-18 18:43:12 +01:00