ruff
Speed up identifier and keyword lexing
#29463
Merged

Speed up identifier and keyword lexing #29463

charliermarsh
charliermarsh charliermarsh added performance
charliermarsh charliermarsh added parser
charliermarsh charliermarsh added performance
charliermarsh charliermarsh added parser
astral-sh-bot
astral-sh-bot
charliermarsh charliermarsh changed the title Scan ASCII identifiers with byte lookups Batch ASCII identifier scanning 14 days ago
astral-sh-bot
codspeed
charliermarsh charliermarsh changed the title Batch ASCII identifier scanning Speed up identifier and keyword lexing 13 days ago
charliermarsh charliermarsh changed the base branch from main to charlie/ruff-shared-postfix-atom 13 days ago
charliermarsh charliermarsh force pushed from a1177bd0 to f91d0493 13 days ago
charliermarsh 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 charliermarsh force pushed from d47bd15d to 03bf69f1 13 days ago
charliermarsh charliermarsh marked this pull request as ready for review 13 days ago
charliermarsh charliermarsh requested a review from MichaReiser MichaReiser 13 days ago
charliermarsh charliermarsh requested a review from dhruvmanila dhruvmanila 13 days ago
MichaReiser
MichaReiser requested changes on 2026-10-19
charliermarsh charliermarsh closed this 13 days ago
MichaReiser
charliermarsh
MichaReiser
charliermarsh
charliermarsh charliermarsh reopened this 13 days ago
charliermarsh charliermarsh requested a review from MichaReiser MichaReiser 9 days ago
MichaReiser
MichaReiser commented on 2026-10-23
MichaReiser
MichaReiser approved these changes on 2026-10-23
charliermarsh Scan ASCII identifiers with byte lookups
d90ac200
charliermarsh Scan identifier bytes in fixed-size batches
755524c0
charliermarsh Use sixteen-byte identifier batches
91f63452
charliermarsh Skip keyword slicing for long ASCII identifiers
341444df
charliermarsh Compare keyword candidates as bytes
69ac5fc5
charliermarsh Recognize Python keywords with a compact hash table
ec5c926c
charliermarsh Simplify keyword table construction
c5db21aa
charliermarsh Clarify identifier scanning and generate keyword tables
bdbce68c
charliermarsh Document the lexer keyword hash tradeoff
6818c903
charliermarsh charliermarsh force pushed from 6e5b67bc to 6818c903 9 days ago
astral-automations-bot
astral-automations-bot
charliermarsh charliermarsh merged de9d86e2 into main 9 days ago
charliermarsh charliermarsh deleted the charlie/ruff-ascii-identifiers branch 9 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone