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

cw1-whitelist-ng: Slight messages parsing improvement #523

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

hashedone
Copy link
Contributor

Removed collecting errors to vector which might be significant cost on wasm, while it is completely not needed. This should also improve efficiency of generating error message, as its format is now well known (instead of iteration based) - but it is less important as it would happen only on err-path. And message itself might improve.

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Looks cheaper and cleaner.

@ethanfrey ethanfrey merged commit 1422c68 into main Nov 2, 2021
@ethanfrey ethanfrey deleted the ng-parsing-improvement branch November 2, 2021 16:33
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