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

Querying the cache #37

Closed
whitequark opened this issue Jul 7, 2020 · 4 comments
Closed

Querying the cache #37

whitequark opened this issue Jul 7, 2020 · 4 comments

Comments

@whitequark
Copy link
Contributor

Especially for larger applications, the cold startup time can be quite long. As a result people end up unsure whether the application is compiling or just hung. It would be nice if there was some way to check if I'm about to hit the cache, so that if I'm going to miss, I could print a message of some sort to stderr.

@alexcrichton
Copy link
Member

Makes sense to me! I think with a feature like bytecodealliance/wasmtime#1779 we may be able to support this well where caching will be first-class at that point rather than hidden behind the scenes. In any case this'll need to be implemented upstream in Wasmtime first.

@whitequark
Copy link
Contributor Author

Cool, looking forward to it. I'm very happy with wasmtime managing the caching for me though.

@alexcrichton
Copy link
Member

With Module.deserialize and Module.serialize I think that this is "effectively done" in that it enables building the cache externally if this is desired. I don't think we're going to add more intrusive support for the built-in cache in Wasmtime itself given this feature as well.

@whitequark
Copy link
Contributor Author

With Module.deserialize and Module.serialize I think that this is "effectively done" in that it enables building the cache externally if this is desired.

I've already done this so closing this is completely reasonable.

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

No branches or pull requests

2 participants