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

Expectations to expose the V8 snapshot API? #3

Closed
andrea-s opened this issue May 20, 2017 · 1 comment
Closed

Expectations to expose the V8 snapshot API? #3

andrea-s opened this issue May 20, 2017 · 1 comment

Comments

@andrea-s
Copy link

Hello! I hope this is the right plage to open discussions related to the library - same as we did on CodePlex. I apologize in advance if it's not the right place.

As of 5.4.9 you guys have been using the V8 snapshot functionality to improve engine start-up times. Do you have any plans to expose the same functionality to the .NET layer, thus allowing users to build their own snapshotted versions of engines and do the same?

Thanks!

@ClearScriptLib
Copy link
Collaborator

Hi @andrea-s,

We don't have plans to expose V8 snapshot capabilities via the ClearScript API.

For one thing, for this feature to be truly useful in ClearScript, it would need the ability to snapshot arbitrary managed objects and types, and that isn't possible as far as we know.

Also, as ClearScript aims to support multiple script engines, our goal has always been to keep engine-specific APIs to a minimum.

For accelerating the re-execution of common script code, consider using V8 code caching (see here and here).

Thank you!

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

No branches or pull requests

2 participants