GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-161335: Collapse runs of adjacent LITERAL opcodes into one _sre dispatch by MercylinPreethi · Pull Request #161332 · python/cpython Conversation
|
| Benchmark | AMD Ryzen 7 9700X | Intel Core Ultra 9 285K | Apple Mac Air |
|---|---|---|---|
| regex_v8 | 4.22% faster (significant) | 1.24% slower (significant) | 10.37% faster (significant) |
| regex_effbot | 3.88% faster (significant) | 3.48% faster (significant) | 9.16% faster (significant) |
| regex_dna | 3.75% faster (significant) | 2.17% faster (significant) | 8.96% faster (significant) |
regex_effbot (+3.5%) and regex_dna (+2.2%), but 1.2% slower on regex_v8. regex_v8 uses many short patterns with few literal runs, so the extra opcode read in the new loop isn't paid back there on this CPU.test_re passes on latest main with the patch.regex_v8, regex_effbot, regex_dna on all three machines (table above).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
As asked: The slowdown is still significantly slower, namely the description is not accurate and underestimates the consequences. Were these PGO/LTO results? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.