ruff
Speed up identifier and keyword lexing
#29463
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
9
Changes
View On
GitHub
Speed up identifier and keyword lexing
#29463
charliermarsh
merged 9 commits into
main
from
charlie/ruff-ascii-identifiers
charliermarsh
added
performance
charliermarsh
added
parser
charliermarsh
added
performance
charliermarsh
added
parser
charliermarsh
changed the title
Scan ASCII identifiers with byte lookups
Batch ASCII identifier scanning
14 days ago
charliermarsh
changed the title
Batch ASCII identifier scanning
Speed up identifier and keyword lexing
13 days ago
charliermarsh
changed the base branch from
main
to
charlie/ruff-shared-postfix-atom
13 days ago
charliermarsh
force pushed
from
a1177bd0
to
f91d0493
13 days ago
charliermarsh
force pushed
from
ea020324
to
d47bd15d
13 days ago
Base automatically changed from
charlie/ruff-shared-postfix-atom
to
main
13 days ago
charliermarsh
force pushed
from
d47bd15d
to
03bf69f1
13 days ago
charliermarsh
marked this pull request as ready for review
13 days ago
charliermarsh
requested a review
from
MichaReiser
13 days ago
charliermarsh
requested a review
from
dhruvmanila
13 days ago
MichaReiser
requested changes on 2026-10-19
charliermarsh
closed this
13 days ago
charliermarsh
reopened this
13 days ago
charliermarsh
requested a review
from
MichaReiser
9 days ago
MichaReiser
commented on 2026-10-23
MichaReiser
approved these changes on 2026-10-23
Scan ASCII identifiers with byte lookups
d90ac200
Scan identifier bytes in fixed-size batches
755524c0
Use sixteen-byte identifier batches
91f63452
Skip keyword slicing for long ASCII identifiers
341444df
Compare keyword candidates as bytes
69ac5fc5
Recognize Python keywords with a compact hash table
ec5c926c
Simplify keyword table construction
c5db21aa
Clarify identifier scanning and generate keyword tables
bdbce68c
Document the lexer keyword hash tradeoff
6818c903
charliermarsh
force pushed
from
6e5b67bc
to
6818c903
9 days ago
charliermarsh
merged
de9d86e2
into main
9 days ago
charliermarsh
deleted the charlie/ruff-ascii-identifiers branch
9 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
MichaReiser
dhruvmanila
Assignees
No one assigned
Labels
performance
parser
Milestone
No milestone
Login to write a write a comment.
Login via GitHub