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

Speed up prettyprinter's renderLazy #166

Merged
merged 1 commit into from
Jun 13, 2020
Merged

Conversation

sjakobi
Copy link
Collaborator

@sjakobi sjakobi commented Jun 13, 2020

renderSimplyDecorated's keeping track of the annotation stack wasn't
actually necessary here. With the custom render loop, we speed up the
large-output benchmarks by roughly 10%.

Note that this also removes some error detection functionality for
SimpleDocStreams with unbalanced SAnnPush and SAnnPop constructors.

Fixes #165.

renderSimplyDecorated's keeping track of the annotation stack wasn't
actually necessary here. With the custom render loop, we speed up the
large-output benchmarks by roughly 10%.

Note that this also removes some error detection functionality for
SimpleDocStreams with unbalanced SAnnPush and SAnnPop constructors.

Fixes #165.
@sjakobi sjakobi merged commit 58c140a into master Jun 13, 2020
@sjakobi sjakobi deleted the sjakobi/165-renderLazy-perf branch June 13, 2020 01:07
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.

Redundant annotation handling in prettyprinter's renderLazy
1 participant