Changeset 1921 in kBuild
- Timestamp:
- Oct 24, 2008 12:30:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache2.c
r1920 r1921 139 139 for some and better for others which isn't very cool... */ 140 140 141 #define BIG_HASH_SIZE 32 142 #define BIG_HASH_TAIL 12 143 #define BIG_HASH_HEAD 16 141 #if 0 142 # define BIG_HASH_SIZE 32 /* kinda fast */ 143 # define BIG_HASH_HEAD 16 144 # define BIG_HASH_TAIL 12 145 #elif 0 146 # define BIG_HASH_SIZE 68 /* kinda safe */ 147 # define BIG_HASH_HEAD 24 148 # define BIG_HASH_TAIL 24 149 #elif 0 150 # define BIG_HASH_SIZE 128 /* safe */ 151 # define BIG_HASH_HEAD 32 152 # define BIG_HASH_TAIL 32 153 #endif 144 154 145 155 #ifdef BIG_HASH_SIZE … … 212 222 # ifdef BIG_HASH_SIZE 213 223 /* long string? */ 224 # if 0 /*BIG_HASH_SIZE > 128*/ 225 if (MY_PREDICT_FALSE(len >= BIG_HASH_SIZE)) 226 # else 214 227 if (len >= BIG_HASH_SIZE) 228 # endif 215 229 return strcache2_case_sensitive_hash_big (str, len); 216 230 # endif
Note:
See TracChangeset
for help on using the changeset viewer.