Single-byte ASCII searcher for StrSearcherImpl(pattern.rs) - #160408
Single-byte ASCII searcher for StrSearcherImpl(pattern.rs)#160408fereidani wants to merge 2 commits into
Conversation
|
The benchmark part is generated by Fable 5 and reviewed/slightly edited by me. Based on the new LLM/AI guidelines, I'm not sure if we want to keep the benchmark code as is. |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Single-byte ASCII searcher for StrSearcherImpl(pattern.rs)
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (ce885d2): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 3.7%, secondary -0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.9%, secondary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 461.168s -> 460.484s (-0.15%) |
|
I'll note the same caveat as in #160731: we probably don't use this much in the compiler so the results are not very conslusive. The results on |
This adds a fast single-byte ASCII searcher using memchr. It will be useful when the user is searching for single ASCII tokens such as
\s,",',/,\n, etc which are common usecase in many applications.Benchmark results:
r? joboet