| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
# main
$ ./python.exe -m timeit -s "s = 'abcdef'" "s.startswith('abc')"
5000000 loops, best of 5: 89.1 nsec per loop
# this PR
$ ./python.exe -m timeit -s "s = 'abcdef'" "s.startswith('abc')"
10000000 loops, best of 5: 26.4 nsec per loop
|
Sorry, something went wrong.
|
We'll also want to convert str.find and friend and finally get rid of the parsing helper in strlib. However, that is best left to a follow-up PR (#117468). I prefer small and incremental changes. |
Sorry, something went wrong.
|
Thanks for the review, @JelleZijlstra and @eendebakpt. I'll hold off merging for a day or two. |
Sorry, something went wrong.
|
Well, with two core devs approving, I'll go ahead and merge. Thanks for the reviews. |
Sorry, something went wrong.
|
Nice optimization! |
Sorry, something went wrong.
…inic (python#117466) This change gives a significant speedup, as the METH_FASTCALL calling convention is now used.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.