|
Faster Response or Smaller Data Size |
|
|
Monday, 23 April 2007 |
|
Right now our implementation on HTML files is read all data from target website, do link substitution, gzip encode it, then send it to user. The problem of this method is the response seems slower to user for HTML files. Other files doesn't suffer this problem since we pretty much stream it to user as soon as we got it from target website. Right now we are trying to code method to partially process HTML and transfer it as soon as possible to user but it will mean no more gzip encoding since we will send the data in chunks.
In the end it will took approximately the same process time and larger file size but response will feel faster to users.
We are coding priority system to ensure HTML and CSS files got higher priority than other files to ensure faster response when there are more requests than threads available.
|
|
Last Updated ( Tuesday, 24 April 2007 )
|