Skip to content

sort: Replace malloc and 0 fill with huge reserve & min 0 fill

b29693a
Select commit
Loading
Failed to load commit list.
Merged

sort: Replace malloc and 0 fill with huge reserve & min 0 fill #10975

sort: Replace malloc and 0 fill with huge reserve & min 0 fill
b29693a
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Feb 19, 2026 in 0s

Performance Gate Passed

⚡ 22 improved benchmarks
✅ 266 untouched benchmarks
⏩ 38 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation sort_ascii_c_locale 18.2 ms 16 ms +13.9%
Simulation sort_german_c_locale 37.3 ms 36.2 ms +3.06%
Simulation sort_ascii_utf8_locale 17.6 ms 15.8 ms +11.51%
Simulation sort_unique_utf8_locale 37.4 ms 36.2 ms +3.31%
Simulation sort_long_line[160000] 1,433.6 µs 870 µs +64.78%
Memory sort_german_de_locale 2.7 MB 1.8 MB +49.14%
Memory sort_dictionary_order[500000] 22 MB 20.5 MB +7.08%
Memory sort_reverse_locale[500000] 21.6 MB 20.5 MB +5.27%
Memory sort_mixed_utf8_locale 2.6 MB 2.3 MB +11.26%
Memory sort_general_numeric[200000] 23.6 MB 22.8 MB +3.3%
Memory sort_unique_utf8_locale 3.7 MB 3.5 MB +7.53%
Memory sort_unique_locale[500000] 33 MB 31.9 MB +3.38%
Memory sort_ascii_c_locale 5.1 MB 4.6 MB +10.16%
Memory sort_accented_data[500000] 21.6 MB 20.5 MB +5.27%
Memory sort_mixed_c_locale 2.6 MB 2.3 MB +11.26%
Memory sort_numeric[500000] 44.8 MB 43.3 MB +3.34%
Memory sort_long_line[160000] 702 KB 604.4 KB +16.16%
Memory sort_ascii_utf8_locale 5.1 MB 4.6 MB +10.16%
Memory sort_reverse_utf8_locale 2.6 MB 2.3 MB +11.26%
Memory sort_german_c_locale 2.7 MB 1.8 MB +49.14%
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Comparing oech3:sort-malloc0 (b29693a) with main (8c98b15)

Open in CodSpeed

Footnotes

  1. 38 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.