Conversation
The terms aggs take include/excludes for terms, and for numeric fields use an hppc set of longs. This commit converts to using a HashSet. relates elastic#84735
|
Pinging @elastic/es-analytics-geo (Team:Analytics) |
nik9000
left a comment
There was a problem hiding this comment.
Do we know if the contains test allocates? This is deep in a high performance path where we really can't allocate. The size of the objects themselves doesn't matter - it's the accept method that calls contains.
Another option that we know doesn't allocate is LongHash - it's a bit silly here, but if we're allocating then it's probably worth it.
If we're not allocating we probably should have a comments in accept about it.
|
I don't have any strong opinions, other than the overall goal of moving away from hppc. I'll switch this to LongHash. |
|
|
|
@elasticmachine run elasticsearch-ci/part-1 |
The terms aggs take include/excludes for terms, and for numeric fields
use an hppc set of longs. This commit converts to using a HashSet.
relates #84735