Presize the download buffer when we see the Content-Length header;
authorMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 13:26:57 +0000 (13:26 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 18 Jan 2007 13:26:57 +0000 (13:26 +0000)
commit6c72bf13a1737387f5b1fae9147c49a148855f26
tree727d576d9b96769abd3ca39a104f92aab65dd735
parent08da93a311261472a6ebd8426ebcd492ca435851
Presize the download buffer when we see the Content-Length header;
this saves around 70us per received packet (which is around 50% of the
overall packet processing time).
src/net/tcp/http.c