lucene
lucene copied to clipboard
Make dynamic range facets value collection and sorting faster
Description
DynamicRangeUtil
collects values from each segment and then sorts all the values in the main thread. I wonder if we could get a speed-up from collecting values in each segment, sorting them (maybe doing insertion sort), and then merging the sorted values from all segments, effectively moving more of the work to the executor and doing less in the main thread.