Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use memchr for string lexing #9888

Merged
merged 1 commit into from
Feb 8, 2024

L

4b4b298
Select commit
Loading
Failed to load commit list.
Merged

Use memchr for string lexing #9888

L
4b4b298
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Feb 8, 2024

Performance Gate Passed

Summary

⚡ 4 improvements
✅ 26 untouched benchmarks

Benchmarks breakdown

Benchmark main charlie/l Change
lexer[unicode/pypinyin.py] 571.5 µs 543.4 µs +5.18%
lexer[numpy/ctypeslib.py] 1.8 ms 1.7 ms +11.64%
lexer[numpy/globals.py] 223.5 µs 159.3 µs +40.35%
parser[numpy/globals.py] 1.1 ms 1.1 ms +6.07%