Skip to content

Simple identifiers do not require heavy parsing. NFC.#193

Open
vgvassilev wants to merge 1 commit intocompiler-research:masterfrom
vgvassilev:optimize-parsing
Open

Simple identifiers do not require heavy parsing. NFC.#193
vgvassilev wants to merge 1 commit intocompiler-research:masterfrom
vgvassilev:optimize-parsing

Conversation

@vgvassilev
Copy link
Copy Markdown
Collaborator

This patch checks if the interfaces are called with single identifiers and adds a fast path to regular CppInterOp lookup. It also checks for AST garbage that came from stringifying anonymous C++ entities.

After these changes we should consume less memory and that will make our infrastructure more stable since it won't rely on interpreter's error recovery logic when a parsing fails.

This patch checks if the interfaces are called with single identifiers and adds
a fast path to regular CppInterOp lookup. It also checks for AST garbage that
came from stringifying anonymous C++ entities.

After these changes we should consume less memory and that will make our
infrastructure more stable since it won't rely on interpreter's error recovery
logic when a parsing fails.
@vgvassilev vgvassilev requested a review from aaronj0 April 2, 2026 09:01
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.

1 participant