Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut down on unnecessary parsing for SyntaxShape::Any #9280

Merged
merged 4 commits into from May 24, 2023

Conversation

sophiajt
Copy link
Member

@sophiajt sophiajt commented May 24, 2023

Description

This removes some unnecessary SyntaxShapes when parsing a SyntaxShape::Any. Recent updates to the parser look for { and then handle the logic for that separately.

Also removes lots of unnecessary allocations during parsing.

User-Facing Changes

This may have a slight parser speedup.

Tests + Formatting

After Submitting

@sophiajt sophiajt merged commit 7ead898 into nushell:main May 24, 2023
16 checks passed
@sophiajt sophiajt deleted the improve_all_parse branch May 24, 2023 19:54
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.

None yet

1 participant