7 points · by nreece · 19y ago · 15 comments
Also, the percentage of compression savings should not be confused with the savings in load time. An 80% reduction in the size of the response does not mean an automatic 80% reduction in page load time.
1. By sending lesser data over the wire, you save on the number of round trips, thereby the page renders faster on the browser
2. the other one is the savings in bandwidth
PG: any particular reason you have not turned on compression? Is to get benefits of chunking?
http://developer.yahoo.net/blog/archives/2007/07/high_perfor...
(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"))))