Commit d48cf56
improve BytesRefHash.sort performance by rearranging ids (#15772)
* improve BytesRefHash.sort performance
Adjusting the data order in ids during compaction,
which can improve data access continuity and reduce cache-misses.
finally enhance sort performance by 20% in million-term tests
* Update changes.
Added a new entry to CHANGES.txt to document performance improvement in BytesRefHash.sort.
* add comment in compact
* Fix comment typo in compact method
* update comment
---------
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>1 parent 6657172 commit d48cf56
File tree
2 files changed
+7
-10
lines changed- lucene
- core/src/java/org/apache/lucene/util
2 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
190 | 185 | | |
| 186 | + | |
191 | 187 | | |
192 | | - | |
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
| |||
0 commit comments