VirtualBox

Changeset 1921 in kBuild


Ignore:
Timestamp:
Oct 24, 2008 12:30:58 AM (16 years ago)
Author:
bird
Message:

strcache2: disabled the experimental stuff because I'm unsure about the actual gain on all CPUs.

File:
1 edited

Legend:

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

    r1920 r1921  
    139139        for some and better for others which isn't very cool...  */
    140140
    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
    144154
    145155#ifdef BIG_HASH_SIZE
     
    212222# ifdef BIG_HASH_SIZE
    213223  /* long string? */
     224#  if 0 /*BIG_HASH_SIZE > 128*/
     225  if (MY_PREDICT_FALSE(len >= BIG_HASH_SIZE))
     226#  else
    214227  if (len >= BIG_HASH_SIZE)
     228#  endif
    215229    return strcache2_case_sensitive_hash_big (str, len);
    216230# endif
Note: See TracChangeset for help on using the changeset viewer.

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