experiment with slower but better hashes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36344 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-03-12 16:11:10 +00:00
parent da1e4a48e2
commit d314f0f843
7 changed files with 429 additions and 79 deletions

View file

@ -38,7 +38,9 @@
static BOOL initialized = NO;
#ifdef __clang__
#pragma clang diagnostic ignored "-Wreceiver-forward-class"
#endif
#if GS_USE_TIMSORT
@class GSTimSortDescriptor;
@ -117,7 +119,7 @@ static BOOL initialized = NO;
{
const char *sel = sel_getName(_selector);
return _ascending + GSPrivateHash(sel, strlen(sel), 16, YES) + [_key hash];
return _ascending + GSPrivateHash(0, sel, strlen(sel)) + [_key hash];
}
- (id) initWithKey: (NSString *) key ascending: (BOOL) ascending