Mercurial > hg > nginx
comparison src/http/ngx_http.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 | c6c33f81fd79 |
comparison
equal
deleted
inserted
replaced
750:e3df50b4a4fd | 751:bae59a740c40 |
---|---|
363 } | 363 } |
364 | 364 |
365 hash.hash = &cmcf->headers_in_hash; | 365 hash.hash = &cmcf->headers_in_hash; |
366 hash.key = ngx_hash_key_lc; | 366 hash.key = ngx_hash_key_lc; |
367 hash.max_size = 512; | 367 hash.max_size = 512; |
368 hash.bucket_size = 64; | 368 hash.bucket_size = ngx_align(64, ngx_cacheline_size); |
369 hash.name = "headers_in_hash"; | 369 hash.name = "headers_in_hash"; |
370 hash.pool = cf->pool; | 370 hash.pool = cf->pool; |
371 hash.temp_pool = NULL; | 371 hash.temp_pool = NULL; |
372 | 372 |
373 if (ngx_hash_init(&hash, headers_in.elts, headers_in.nelts) != NGX_OK) { | 373 if (ngx_hash_init(&hash, headers_in.elts, headers_in.nelts) != NGX_OK) { |