You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
17
17
- Add BooleanQuery rewrite moving constant-scoring must clauses to filter clauses ([#18510](https://github.com/opensearch-project/OpenSearch/issues/18510))
18
18
- Add functionality for plugins to inject QueryCollectorContext during QueryPhase ([#18637](https://github.com/opensearch-project/OpenSearch/pull/18637))
19
19
- Add support for non-timing info in profiler ([#18460](https://github.com/opensearch-project/OpenSearch/issues/18460))
20
+
- Optimize Composite Aggregations by removing unnecessary object allocations ([#18531](https://github.com/opensearch-project/OpenSearch/pull/18531))
20
21
21
22
### Changed
22
23
- Update Subject interface to use CheckedRunnable ([#18570](https://github.com/opensearch-project/OpenSearch/issues/18570))
Copy file name to clipboardExpand all lines: server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ private class Slot {
60
60
this.value = initial;
61
61
}
62
62
63
+
// This is to be only for reusable slot
64
+
publicvoidset(intnewValue) {
65
+
this.value = newValue;
66
+
}
67
+
63
68
@Override
64
69
publicbooleanequals(Objecto) {
65
70
if (this == o) returntrue;
@@ -82,6 +87,14 @@ public int hashCode() {
82
87
privatefinalMap<Slot, Integer> map; // to quickly find the slot for a value
0 commit comments