elasticsearch/elasticsearch — pull request #4842 by jpountz (2014-01-22 00:53:43+00:00)
Title: Make all aggregators reader-context-aware.

This removes the overhead of polling a Bytes/Double/Long-Values instance in
every call to collect.

Additionally, the AggregationsCollector has been changed to wrap a simple array
instead of an ArrayList.

HistogramAggregationSearchBenchmark reports response times that are ~10%
better.

Close #4841