3 ms·
good point. PG: any particular reason you have not turned on compression? Is to get benefits of chunking?
by prakash 19y ago
good point.
PG: any particular reason you have not turned on compression? Is to get benefits of chunking?
- pg 19y agoHow do you propose I turn on compression?
- nreece 19y agoWhat web server do you run? (Apache on *nix Or IIS on Windows)
- pg 19y agothis one: (def serve ((o port 8080)) (nil! quitsrv*) (ensure-dir logdir*) (let s (open-socket port) (prn "ready to serve port " port) (flushout) (= currsock* s) (after (while (no quitsrv*) (if breaksrv* (handle-request s) (errsafe (handle-request s)))) (close s) (prn "quit server"))))
- jsjenkins168 19y agoApache just got owned.
- staunch 19y agoPerlbal (or something else) proxying requests would be a quick way to add support. Probably not worth the hassle on news.yc. No pages are that big and I doubt bandwidth usage is killing you.
- nreece 19y agoycombinator.com seems to be running Apache/2.2.4 on FreeBSD ( http://uptime.netcraft.com/up/graph?site=www.ycombinator.com http://uptime.netcraft.com/up/graph?site=www.ycombinator.com ), in which case your best option is using the mod_gzip module: http://www.schroepl.net/projekte/mod_gzip/ http://www.schroepl.net/projekte/mod_gzip/
- deleted 19y ago[deleted]
- euccastro 19y agoWhat part of "this one" don't you understand? :) www.ycombinator.com is not necessarily news.ycombinator.com.
- prakash 19y agomod_gzip & mod_deflate -- for html, css, js files + anything else with content disposition "text/html". http://developer.yahoo.net/blog/archives/2007/07/high_performanc_3.html http://developer.yahoo.net/blog/archives/2007/07/high_perfor...
- aston 19y agoMmm...I don't know how easy it'd be for you to get a precompiled C++ extension hooked into Arc. Something Guile-ish? But yeah, once that's done, just toss everything your server outputs into it.