18 ms·
\* Fibonacci hashing spreads packed ARGB keys uniformly. Used so that low bits don't dominate the cache. */ return (NSUInteger) ((key * 114007148193
by camel-cdr 4mo ago
\* Fibonacci hashing spreads packed ARGB keys uniformly.
Used so that low bits don't dominate the cache. */
return (NSUInteger) ((key * 11400714819323198485ULL)
& (NS_COLOR_CACHE_SIZE - 1));
This is not how hashing works...