Skip to content

avoid mutation of AST objects - #910

Merged
asottile merged 1 commit into
mainfrom
avoid-mutation
Oct 14, 2026
Merged

asottile merged 1 commit into
mainfrom
avoid-mutation

Conversation

@asottile

@asottile asottile commented Oct 8, 2026

Copy link
Copy Markdown
Member

this appears to make pyflakes about 10-15% faster (!)

(the theory here being that modern python can generally use fast attribute lookup unless the object gets mutated)

Wkhanex

This comment was marked as spam.

@asottile
asottile merged commit f0a8b98 into main Oct 14, 2026
11 checks passed
@asottile
asottile deleted the avoid-mutation branch October 14, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants