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

Switch to continuation-passing-style implementation #8

Merged
merged 1 commit into from Jan 8, 2014
Merged

Conversation

@timjb
Copy link
Contributor

timjb commented Jan 2, 2014

With this, the stack doesn't grow with every use of <|>, and alternatives are forgotten once we have committed to one branch. This should improve space usage and enable parsing of large documents without a stack overflow. I tested this new implementation with Bibdris. Performance seems to be on par with the old implementation.

ziman added a commit that referenced this pull request Jan 8, 2014
Switch to continuation-passing-style implementation
@ziman ziman merged commit 07f65d2 into ziman:master Jan 8, 2014
@ziman
Copy link
Owner

ziman commented Jan 8, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.