diff options
| author | Marc Tiehuis <marc@tiehu.is> | 2023-09-14 19:54:36 +1200 |
|---|---|---|
| committer | Marc Tiehuis <marc@tiehu.is> | 2023-09-30 21:19:43 +1300 |
| commit | cd766513febecd79fc62a0f46ee18867fabbbf7d (patch) | |
| tree | 48be459f4fa7bb743867f22c683098cbc4353596 /lib/std/Build/Step/CheckObject.zig | |
| parent | 873c695c41dffd89ba7ef1b3ed6662e429bfa00d (diff) | |
| download | zig-cd766513febecd79fc62a0f46ee18867fabbbf7d.tar.gz zig-cd766513febecd79fc62a0f46ee18867fabbbf7d.zip | |
std.mem: add vectorized indexOfScalarPos and indexOfSentinel
These are an order of magnitude quicker than the previous
implementations:
A relative comparison of each, measuring scanning a 1G file.
Reading 1G (1.0000000009313226GiB)
std.mem.sliceTo: 281.232ms
vectorized.sliceTo: 24.769ms
strlen: 24.291ms
std.indexOfScalar: 229.016ms
vectorized.indexOfScalar: 24.685ms
memchr: 24.958ms
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
0 files changed, 0 insertions, 0 deletions
