4 ms·
Couldn't browsers keep a map of js-file-hash to cached AST?
by slewis 11y ago
Couldn't browsers keep a map of js-file-hash to cached AST?
- mikegioia 11y agoI think it suffers from the same problem as other asset caching. Think of all the sites you visit and how much JS they load. 1000 websites with 1MB of JS will hit 1GB of storage.
- mbrock 11y agoIt's not just parsing, it's evaluating all the code statement by statement, and the result of that is hard to cache.