diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-06-05 06:44:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-06-05 06:44:08 +0000 |
commit | c915106f20629a3306fae10db413d5d596c1fc3e (patch) | |
tree | 69a696c417bf92c0b8fd7ca8edb69c8ef4680d60 /src/http/ngx_http_core_module.h | |
parent | bf15d70e10e1a58aa2c143064201b56f41e5e3ac (diff) | |
download | nginx-c915106f20629a3306fae10db413d5d596c1fc3e.tar.gz nginx-c915106f20629a3306fae10db413d5d596c1fc3e.zip |
optimize regex location search
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index ad149f08c..9a8d62938 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -117,6 +117,9 @@ typedef struct { */ ngx_array_t locations; + unsigned regex_start:16; + unsigned wildcard:1; + /* array of the ngx_http_listen_t, "listen" directive */ ngx_array_t listen; @@ -138,8 +141,6 @@ typedef struct { ngx_flag_t optimize_server_names; ngx_flag_t ignore_invalid_headers; - - ngx_uint_t wildcard; /* unsigned wildcard:1 */ } ngx_http_core_srv_conf_t; @@ -210,6 +211,8 @@ struct ngx_http_core_loc_conf_s { ngx_regex_t *regex; #endif + unsigned regex_start:16; + unsigned noname:1; /* "if () {}" block */ unsigned exact_match:1; |