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
@@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
47
47
- Prevent shard initialization failure due to streaming consumer errors ([#18877](https://github.com/opensearch-project/OpenSearch/pull/18877))
48
48
- APIs for stream transport and new stream-based search api action ([#18722](https://github.com/opensearch-project/OpenSearch/pull/18722))
49
49
- Added the core process for warming merged segments in remote-store enabled domains ([#18683](https://github.com/opensearch-project/OpenSearch/pull/18683))
50
+
- Optimize Composite Aggregations by removing unnecessary object allocations ([#18531](https://github.com/opensearch-project/OpenSearch/pull/18531))
50
51
51
52
### Changed
52
53
- 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