Skip to content

Disable context variables by default #175

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

Merged
merged 2 commits into from
Sep 18, 2021
Merged

Disable context variables by default #175

merged 2 commits into from
Sep 18, 2021

Conversation

keichi
Copy link
Owner

@keichi keichi commented Sep 18, 2021

This PR disables the context variables introduced recently (#166, #169, and #170) by default. The introduction of context variables degraded the parsing performance for multiple orders of magnitudes because it adds and deletes properties during parsing. Although context variables are useful, I decided to disable context variables by default since binary-parser's primary goal is high parsing performance.

Users will need to call .useContextVars() on the parser object to enable context variables.

Closes #173.

@keichi keichi changed the title Disable context var Disable context variables by default Sep 18, 2021
@keichi keichi merged commit aaa1bb2 into master Sep 18, 2021
@keichi keichi deleted the disable-context-var branch September 21, 2021 12:47
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.

Performance regression since v1.9.0
1 participant