You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time we run wasmer run, there seems to be a 500-1000ms delay before the WASI instance starts.
I believe this is because of the wasmer_wasix::runtime::resolver::WapmSource querying WAPM every time, but I'll double-check the logs.
Proposed solution
The best way to avoid hitting the WAPM backend every time we start up is to cache the result of queries that have been made in the past. This could either be the original GraphQL queries or the more high-level "which versions satisfy some/package@^1.0?"
Additional context
This delay is causing a fair amount of flakiness in Wasmer's CI because the run_test_caching_works_for_packages_with_versions test relies on measuring a command's run time to infer whether we hit the cache or not.
The text was updated successfully, but these errors were encountered:
Motivation
Every time we run
wasmer run
, there seems to be a 500-1000ms delay before the WASI instance starts.I believe this is because of the
wasmer_wasix::runtime::resolver::WapmSource
querying WAPM every time, but I'll double-check the logs.Proposed solution
The best way to avoid hitting the WAPM backend every time we start up is to cache the result of queries that have been made in the past. This could either be the original GraphQL queries or the more high-level "which versions satisfy
some/package@^1.0
?"Additional context
This delay is causing a fair amount of flakiness in Wasmer's CI because the
run_test_caching_works_for_packages_with_versions
test relies on measuring a command's run time to infer whether we hit the cache or not.The text was updated successfully, but these errors were encountered: