Skip to content

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

Merged
ethanfrey merged 1 commit intomainfrom
ng-parsing-improvement
Nov 2, 2021
Merged

cw1-whitelist-ng: Slight messages parsing improvement#523
ethanfrey merged 1 commit intomainfrom
ng-parsing-improvement

Conversation

@hashedone
Copy link
Copy Markdown
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.

@hashedone hashedone force-pushed the ng-parsing-improvement branch from d9ed6ab to a3f696e Compare November 2, 2021 13:34
@hashedone hashedone requested a review from maurolacy November 2, 2021 14:03
Copy link
Copy Markdown
Contributor

@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