elasticsearch/x-pack
Nhat Nguyen 256437902b
Add optimized path for intermediate values aggregator (#131390)
Similar to #127849, this change adds an optimized path for leveraging 
ordinal blocks of intermediate input pages in the Values aggregator.
Below are the micro-benchmark results.

Before:
```
// 1 raw input page + 1000 intermediate input pages
Benchmark                      (dataType)  (groups)  Mode  Cnt       Score   Error  Units
ValuesAggregatorBenchmark.run    BytesRef         1  avgt    2       0.382          ms/op
ValuesAggregatorBenchmark.run    BytesRef      1000  avgt    2     112.293          ms/op
ValuesAggregatorBenchmark.run    BytesRef   1000000  avgt    2  113182.908          ms/op
```

```
After:
// 1 raw input page + 1000 intermediate input pages
Benchmark                      (dataType)  (groups)  Mode  Cnt      Score   Error  Units
ValuesAggregatorBenchmark.run    BytesRef         1  avgt    2      0.378          ms/op
ValuesAggregatorBenchmark.run    BytesRef      1000  avgt    2     34.410          ms/op
ValuesAggregatorBenchmark.run    BytesRef   1000000  avgt    2  64654.830          ms/op
```
1K groups:  112 ms -> 34.4ms
1M groups:     113s -> 64s

More to come with #130510

Relates #127849
2025-07-21 12:13:57 -07:00
..
dev-tools
extras Delegated authorization using Microsoft Graph (SDK) (#128396) 2025-06-12 11:03:32 +02:00
libs [Gradle] Update shadow plugin (#116826) 2024-11-15 19:07:46 +01:00
license-tools Cleanup missing use of StandardCharsets (#125424) 2025-03-21 20:10:15 +01:00
plugin Add optimized path for intermediate values aggregator (#131390) 2025-07-21 12:13:57 -07:00
qa Disable queryable built-in feature for smoke-test-plugins-ssl (#131523) (#131543) 2025-07-18 19:55:59 +02:00
rest-resources-zip Add watcher YAML REST tests to restResourcesZip (#130805) 2025-07-09 17:16:01 +04:00
test Update JDK base image for OIDC fixture (#131176) 2025-07-14 16:29:19 +10:00
NOTICE.txt
README.md
build.gradle Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896) 2025-03-05 08:02:13 +01:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Server Side Public License, v 1.