Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Couldn't browsers keep a map of js-file-hash to cached AST?


It's not just parsing, it's evaluating all the code statement by statement, and the result of that is hard to cache.


I 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.


1gb isn't huge on the desktop, especially if the cache expired LRU.


I don't think any of this concerns desktops anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: