diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2024-05-28 19:17:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 19:17:49 (GMT) |
commit | d87b0151062e36e67f9e42e1595fba5bf23a485c (patch) | |
tree | 1a552ad552d5a2cbdcad3ae58d33cbd4879c3217 /Python/optimizer_cases.c.h | |
parent | ae9140f32a1630838374f1af402291d4649a0be0 (diff) | |
download | cpython-d87b0151062e36e67f9e42e1595fba5bf23a485c.zip cpython-d87b0151062e36e67f9e42e1595fba5bf23a485c.tar.gz cpython-d87b0151062e36e67f9e42e1595fba5bf23a485c.tar.bz2 |
gh-119118: Fix performance regression in tokenize module (#119615)
* gh-119118: Fix performance regression in tokenize module
- Cache line object to avoid creating a Unicode object
for all of the tokens in the same line.
- Speed up byte offset to column offset conversion by using the
smallest buffer possible to measure the difference.
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Python/optimizer_cases.c.h')
0 files changed, 0 insertions, 0 deletions