Commit eff510e
committed
perf/sorter: sort pointers instead of records, use arena allocation
1. Use bump arena for in-memory records
- Allows contiguous allocation and bulk deallocate
- Allows sorting pointers instead of sorting large SortableImmutableRecord structs which pay a large memmove penalty
2. Use boxed records for on-disk chunk heap: avoids the same memmove problem1 parent 9582043 commit eff510e
4 files changed
+212
-73
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
1314 | | - | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1315 | 1320 | | |
1316 | 1321 | | |
1317 | 1322 | | |
| |||
1365 | 1370 | | |
1366 | 1371 | | |
1367 | 1372 | | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1368 | 1382 | | |
1369 | 1383 | | |
1370 | 1384 | | |
| |||
1386 | 1400 | | |
1387 | 1401 | | |
1388 | 1402 | | |
1389 | | - | |
1390 | 1403 | | |
1391 | 1404 | | |
1392 | 1405 | | |
| |||
0 commit comments