Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_gzip_filter.c @ 433:9a97dcdd2421
nginx-0.0.11-2004-09-21-19:47:05 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 21 Sep 2004 15:47:05 +0000 |
parents | 358bbd2561b5 |
children | da8c5707af39 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -440,8 +440,9 @@ static ngx_int_t ngx_http_gzip_body_filt * Besides we free this memory as soon as the gzipping will complete * and do not wait while a whole response will be sent to a client. * - * 8K is for zlib deflate_state. It takes 5816 bytes on x86 - * and 5920 bytes on amd64. + * 8K is for zlib deflate_state, it takes + * * 5816 bytes on x86 and sparc64 (32-bit mode) + * * 5920 bytes on amd64 and sparc64 */ ctx->allocated = 8192 + (1 << (wbits + 2)) + (1 << (memlevel + 9)); @@ -803,9 +804,7 @@ static void *ngx_http_gzip_filter_alloc( if (alloc % 512 != 0) { /* - * The zlib deflate_state allocation, it takes 5816 bytes on x86 - * and 5920 bytes on amd64. - * We allocate 8K. + * the zlib deflate_state allocation, it takes about 6K, we allocate 8K */ alloc = (alloc + ngx_pagesize - 1) & ~(ngx_pagesize - 1);