diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2024-07-13 17:29:18 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2024-07-13 18:37:49 -0700 |
| commit | d48251d0f0d2de2f618afe65db3ba425b332d5c4 (patch) | |
| tree | 6e68a4f307c7a8ec048a8bc8f5dacc04f6979341 /src/InternPool.zig | |
| parent | 1a62cfffa79917d930b77f2598b1bfc93efeede5 (diff) | |
| download | zig-d48251d0f0d2de2f618afe65db3ba425b332d5c4.tar.gz zig-d48251d0f0d2de2f618afe65db3ba425b332d5c4.zip | |
ArgIteratorWindows.init: Take `[]const u16` slice instead of multi-item pointer
Now that we use the PEB to get the precise length of the command line string, there's no need for a multi-item pointer/sliceTo call. This provides a minor speedup:
Benchmark 1 (153 runs): benchargv-before.exe
measurement mean ± σ min … max outliers delta
wall_time 32.7ms ± 429us 32.1ms … 36.9ms 1 ( 1%) 0%
peak_rss 6.49MB ± 5.62KB 6.46MB … 6.49MB 14 ( 9%) 0%
Benchmark 2 (157 runs): benchargv-after.exe
measurement mean ± σ min … max outliers delta
wall_time 31.9ms ± 236us 31.4ms … 32.7ms 4 ( 3%) ⚡- 2.4% ± 0.2%
peak_rss 6.49MB ± 4.77KB 6.46MB … 6.49MB 14 ( 9%) + 0.0% ± 0.0%
Diffstat (limited to 'src/InternPool.zig')
0 files changed, 0 insertions, 0 deletions
