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
Final output is now a verbatim byte copy. The last merged chunk is
already in the exact output format ([int64 count][item]...), so Sort()
copies its bytes straight to the output stream instead of deserializing and
re-serializing every record. This removes a whole pass of per-record
(string) allocation from the hot path.
Measured on the 50K end-to-end benchmark (Ryzen 9800X3D): allocation ~23.75 MB → ~21.8 MB (~8% less), and ~9–14% faster end-to-end
(e.g. P=8 15.41 ms → 13.30 ms). Output is byte-identical
(Read ∘ Write round-trips the format exactly).