6 ms·
There would be a lot less traffic if news.yc dealt in http caching headers. This has been mentioned a bunch of times, so maybe you don't care, or maybe it's not
by sayrer 17y ago
There would be a lot less traffic if news.yc dealt in http caching headers. This has been mentioned a bunch of times, so maybe you don't care, or maybe it's not clear how much it really does save.
- lg 17y agoIt has stuff like this, which I remember from my clojure implementation of srv.arc. (do (prn header*) (awhen (max-age* op) (prn "Cache-Control: max-age=" it)) (f str req))))
- pg 17y agoServing pages is not the bottleneck at the moment. The biggest bottlenecks are (a) garbage collection, once lazy loading has loaded 800k items into memory, and (b) that some requests, notably voting, are very expensive. I just have to rewrite some code.