comparison src/http/modules/ngx_http_fastcgi_module.c @ 751:bae59a740c40

align hash bucket size to cache line
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Oct 2006 14:03:16 +0000
parents e3df50b4a4fd
children 4ab852b691f5
comparison
equal deleted inserted replaced
750:e3df50b4a4fd 751:bae59a740c40
1824 } 1824 }
1825 1825
1826 hash.hash = &conf->upstream.hide_headers_hash; 1826 hash.hash = &conf->upstream.hide_headers_hash;
1827 hash.key = ngx_hash_key_lc; 1827 hash.key = ngx_hash_key_lc;
1828 hash.max_size = 512; 1828 hash.max_size = 512;
1829 hash.bucket_size = 64; 1829 hash.bucket_size = ngx_align(64, ngx_cacheline_size);
1830 hash.name = "fastcgi_hide_headers_hash"; 1830 hash.name = "fastcgi_hide_headers_hash";
1831 hash.pool = cf->pool; 1831 hash.pool = cf->pool;
1832 hash.temp_pool = NULL; 1832 hash.temp_pool = NULL;
1833 1833
1834 if (ngx_hash_init(&hash, hide_headers.elts, hide_headers.nelts) != NGX_OK) { 1834 if (ngx_hash_init(&hash, hide_headers.elts, hide_headers.nelts) != NGX_OK) {