Skip to content

Switch to continuation-passing-style implementation#8

Merged
ziman merged 1 commit into
ziman:masterfrom
timjb:cps
Jan 8, 2014
Merged

Switch to continuation-passing-style implementation#8
ziman merged 1 commit into
ziman:masterfrom
timjb:cps

Conversation

@timjb
Copy link
Copy Markdown
Contributor

@timjb 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
Copy Markdown
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants