VirtualBox

Changeset 1905 in kBuild


Ignore:
Timestamp:
Oct 21, 2008 5:13:12 AM (16 years ago)
Author:
bird
Message:

strcache2: benchmarked strcache2_case_sensitive_hash_1 against return_STRING_N_HASH_1, finding it 18% faster.

File:
1 edited

Legend:

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

    r1904 r1905  
    105105strcache2_case_sensitive_hash_1 (const char *str, unsigned int len)
    106106{
     107  /* Note! This implementation is 18% faster than return_STRING_N_HASH_1
     108           when running the two 100 times over typical kBuild strings that
     109           end up here (did a fprintf here and built kBuild).
     110           Compiler was 32-bit gcc 4.0.1, darwin, with -O2. */
     111
    107112  unsigned int hash = 0;
    108113  if (MY_PREDICT_TRUE(len >= 2))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette