Skip to content

Cache matcher fields - 6% improvement - #1470

Open
tpolasek wants to merge 1 commit into
Instagram:mainfrom
tpolasek:perf/cache-matcher-fields
Open

Cache matcher fields - 6% improvement#1470
tpolasek wants to merge 1 commit into
Instagram:mainfrom
tpolasek:perf/cache-matcher-fields

Conversation

@tpolasek

Copy link
Copy Markdown

Cache immutable dataclass field definitions by matcher type instead of resolving them for every recursive LibCST matcher comparison.

Test Plan

Add coverage for cache reuse and matcher behavior.

Cache immutable dataclass field definitions by matcher type instead of resolving them for every recursive LibCST matcher comparison.

Add coverage for cache reuse and matcher behavior.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 25, 2026

@stroxler stroxler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change is good, but it looks like it needs some adjustments to pass the CI gate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants