Closed felixonmars closed 5 years ago
Some benchmarks on my machine:
31% speedup in Python 3 26% speedup in Python 2
5% slower than C version (In comparison, the original Python version is 65% slower than C version)
Merged! Don't forget to update Makefile, README and benchmark.toml next time.
It achieves
~
30% speedup than original Python version. Most improvements came from convertingstartswith
tostrncmp
. There are also small gains (2~
5% each) from converting file/string operations.