Files
lo/benchmark
Samuel Berthe 1f669cbc2d perf: preallocate result slices in Difference (#830)
Difference previously initialized left and right as empty slice
literals (Slice{}), causing repeated grow-and-copy allocations
as elements were appended.

Now preallocates with make(Slice, 0, len(listN)) to avoid
unnecessary reallocations.
2026-03-05 21:15:05 +01:00
..