comparison src/core/ngx_hash.h @ 3510:4c70bbdfd076

allow hash key values more than 255 bytes, it does not actually increase mean hash element size, because due to aligning a byte after key is not used anyway in 3/4 cases on 32-bit platforms and in 7/8 cases on 64-bit platforms
author Igor Sysoev <igor@sysoev.ru>
date Thu, 13 May 2010 12:52:45 +0000
parents 7a7c9e9024dd
children d620f497c50f
comparison
equal deleted inserted replaced
3509:d87711a54dc4 3510:4c70bbdfd076
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 14
15 typedef struct { 15 typedef struct {
16 void *value; 16 void *value;
17 u_char len; 17 u_short len;
18 u_char name[1]; 18 u_char name[1];
19 } ngx_hash_elt_t; 19 } ngx_hash_elt_t;
20 20
21 21
22 typedef struct { 22 typedef struct {