Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter.c @ 344:e366ba5db8f8
nginx-0.0.3-2004-06-01-10:04:46 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Jun 2004 06:04:46 +0000 |
parents | 6bdf858bff8c |
children | 55e496a8ece3 |
comparison
equal
deleted
inserted
replaced
343:6bdf858bff8c | 344:e366ba5db8f8 |
---|---|
433 memlevel--; | 433 memlevel--; |
434 } | 434 } |
435 } | 435 } |
436 | 436 |
437 /* | 437 /* |
438 * We preallocate a memory for zlib in one hunk (200K-400K), this | 438 * We preallocate a memory for zlib in one buffer (200K-400K), this |
439 * dicreases a number of malloc() and free() calls and also probably | 439 * dicreases a number of malloc() and free() calls and also probably |
440 * dicreases a number of syscalls. | 440 * dicreases a number of syscalls (sbrk() or so). |
441 * Besides we free() this memory as soon as the gzipping will complete | 441 * Besides we free() this memory as soon as the gzipping will complete |
442 * and do not wait while a whole response will be sent to a client. | 442 * and do not wait while a whole response will be sent to a client. |
443 * | 443 * |
444 * 8K is for zlib deflate_state (~6K). | 444 * 8K is for zlib deflate_state (~6K). |
445 * | 445 * |