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

Cache skipParsing #54

Merged
merged 3 commits into from Mar 14, 2021
Merged

Cache skipParsing #54

merged 3 commits into from Mar 14, 2021

Conversation

soasme
Copy link
Owner

@soasme soasme commented Mar 14, 2021

The optimization brings about 10% performance improvement.
Given out2.txt provided in #48 , comparing to current HEAD, the run time is reduced.
Before

$ nim c -d:release src/markdown.nim && time ./src/markdown < /tmp/out2.txt
real	0m1.663s
user	0m0.535s
sys	0m0.016s

After

real	0m1.120s
user	0m0.474s
sys	0m0.012s

@soasme soasme merged commit 0061c5f into master Mar 14, 2021
@soasme soasme deleted the optm-prof branch March 14, 2021 00:24
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.

None yet

1 participant