deno
deno copied to clipboard
V8 code cache: node_modules cache doesn't work on Lambda
For node_modules we use timestamps instead of hashes, and on Lambda fs the timestamp resolution is seconds (not milliseconds). If the docker image has time resolution of milliseconds that will always cause cache misses.
We might want to consider just computing a hash of the source file instead of using timestamps. It's super fast to do.
Also, the current reading from the sqlite cache to get a hash might be racy now after https://github.com/denoland/deno/pull/23634 -- we probably just want to compute a hash all the time
Will benchmark with computed hashes