Ignore:
Timestamp:
Oct 21, 2008, 3:21:39 AM (17 years ago)
Author:
bird
Message:

kmk: added strcache2_get_ptr_hash for more efficent hashing by string pool users; replacing hash1 with that and hash2 with hash1, thus avoiding unnecessary hash2 calculations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/variable.c

    r1890 r1897  
    118118#else
    119119  /* all requests are served from the cache. */
    120   return strcache2_get_hash1 (&variable_strcache, key->name);
     120  return strcache2_get_ptr_hash (&variable_strcache, key->name);
    121121#endif
    122122}
     
    485485#ifdef KMK /* bird: speed */
    486486      struct hash_table *ht = &setlist->set->table;
    487       unsigned int hash_1 = strcache2_get_hash1 (&variable_strcache, name);
     487      unsigned int hash_1 = strcache2_get_ptr_hash (&variable_strcache, name);
    488488      struct variable *v;
    489489
Note: See TracChangeset for help on using the changeset viewer.