SIGN IN SIGN UP

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>
L
Lysandros Nikolaou committed
d87b0151062e36e67f9e42e1595fba5bf23a485c
Parent: ae9140f
Committed by GitHub <noreply@github.com> on 5/28/2024, 7:17:49 PM