Changeset 1925 for trunk/src/kmk/strcache2.c
- Timestamp:
- Oct 24, 2008, 5:32:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache2.c
r1921 r1925 1266 1266 1267 1267 #ifdef STRCACHE2_USE_MASK 1268 printf (_("%s hash size = %u mask = %#x rehashed %u times lookups = %lu\n"),1269 prefix, cache->hash_size, cache->hash_mask, rehashes , cache->lookup_count);1268 printf (_("%s hash size = %u mask = %#x rehashed %u times"), 1269 prefix, cache->hash_size, cache->hash_mask, rehashes); 1270 1270 #else 1271 printf (_("%s hash size = %u div = %#x rehashed %u times lookups = %lu\n"),1272 prefix, cache->hash_size, cache->hash_div, rehashes , cache->lookup_count);1271 printf (_("%s hash size = %u div = %#x rehashed %u times"), 1272 prefix, cache->hash_size, cache->hash_div, rehashes); 1273 1273 #endif 1274 1274 if (cache->lookup_count) 1275 printf (_("%s hash collisions 1st = %lu (%u%%) 2nd = %lu (%u%%) 3rd = %lu (%u%%)\n"), 1275 printf (_("%s lookups = %lu\n" 1276 "%s hash collisions 1st = %lu (%u%%) 2nd = %lu (%u%%) 3rd = %lu (%u%%)"), 1277 prefix, cache->lookup_count, 1276 1278 prefix, 1277 1279 cache->collision_1st_count, (unsigned int)((100.0 * cache->collision_1st_count) / cache->lookup_count), 1278 1280 cache->collision_2nd_count, (unsigned int)((100.0 * cache->collision_2nd_count) / cache->lookup_count), 1279 1281 cache->collision_3rd_count, (unsigned int)((100.0 * cache->collision_3rd_count) / cache->lookup_count)); 1280 printf (_(" %s hash insert collisions = %u (%u%%)\n"),1282 printf (_("\n%s hash insert collisions = %u (%u%%)\n"), 1281 1283 prefix, cache->collision_count,(unsigned int)((100.0 * cache->collision_count) / cache->count)); 1282 1284 printf (_("%s %5u (%u%%) empty hash table slots\n"),
Note:
See TracChangeset
for help on using the changeset viewer.