diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-28 20:49:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 20:49:02 (GMT) |
commit | 4a0af0cfdcc0b81da5d78dc219df4985c4403f9c (patch) | |
tree | 18efcf4c071e3beab5ce26947e4ab90ad02ab66e /Python/Python-ast.c | |
parent | 7f06cd335e91b0ec79c4608f23018c2a785332b1 (diff) | |
download | cpython-4a0af0cfdcc0b81da5d78dc219df4985c4403f9c.zip cpython-4a0af0cfdcc0b81da5d78dc219df4985c4403f9c.tar.gz cpython-4a0af0cfdcc0b81da5d78dc219df4985c4403f9c.tar.bz2 |
[3.12] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119683)
- 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.
(cherry picked from commit d87b0151062e36e67f9e42e1595fba5bf23a485c)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions