tighter structure
This commit is contained in:
parent
8e3a35b06f
commit
d8945980a7
1 changed files with 9 additions and 10 deletions
19
include/r3.h
19
include/r3.h
|
@ -37,13 +37,17 @@ struct _node {
|
|||
edge ** edges;
|
||||
// edge ** edge_table;
|
||||
|
||||
// almost less than 255
|
||||
// edges are mostly less than 255
|
||||
unsigned char edge_len;
|
||||
unsigned char compare_type;
|
||||
unsigned char endpoint;
|
||||
unsigned char ov_cnt;
|
||||
unsigned char compare_type; // compare_type: pcre, opcode, string
|
||||
unsigned char endpoint; // endpoint, should be zero for non-endpoint nodes
|
||||
unsigned char ov_cnt; // capture vector array size for pcre
|
||||
|
||||
// <-- here comes a char[4] struct padding for alignment since we have 4 char above.
|
||||
// almost less than 255
|
||||
unsigned char edge_cap;
|
||||
unsigned char route_len;
|
||||
unsigned char route_cap;
|
||||
// <-- here comes a char[1] struct padding for alignment since we have 4 char above.
|
||||
|
||||
|
||||
/** compile-time variables here.... **/
|
||||
|
@ -56,11 +60,6 @@ struct _node {
|
|||
|
||||
char * combined_pattern;
|
||||
|
||||
// almost less than 255
|
||||
unsigned char edge_cap;
|
||||
unsigned char route_len;
|
||||
unsigned char route_cap;
|
||||
|
||||
/**
|
||||
* the pointer of route data
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue