4 ms·
Or more generally... I've been hearing about these things called caches... Maybe they should "cache" this data for the most common files. Voila, no favoritism,
by litewulf 18y ago
Or more generally... I've been hearing about these things called caches...
Maybe they should "cache" this data for the most common files. Voila, no favoritism, only sweet sweet performance. (At the cost of having some sort of frequency table.)
And cache eviction and all that is pretty well understood too...
- eggnet 18y agoBut you don't know that url A and url B in fact point to the same file until after the file has been downloaded. At that point, why not just load the javascript instead of performing an md5 checksum.
- litewulf 18y agoBecause parsing isn't free. In addition, one interesting optimization it opens up is something akin to the JVM where performance improves as profiling of code is done. Imagine if every site that used a Javascript library served to improve the performance of that library for all future invocations. That would be nifty.