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

Add v8-compile-cache to make faster startup #139

Merged
merged 2 commits into from
Aug 29, 2019
Merged

Add v8-compile-cache to make faster startup #139

merged 2 commits into from
Aug 29, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 28, 2019

Make CLI be faster by adding v8-compile-cache that attaches the require hook for using V8 code cache.

Benchmark of time ./marp-cli.js in my environments shows not dramatic but steady x1.15 speed up. (Use average time of 10 executions)

real Mac Win
master 0.671s 0.960s
v8-compile-cache 0.585s (x1.15) 0.843s (x1.14)

@yhatt yhatt merged commit a561620 into master Aug 29, 2019
@yhatt yhatt deleted the v8-compile-cache branch August 29, 2019 12:23
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.

1 participant