mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
da1e4a48e2
commit
d314f0f843
7 changed files with 429 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue