|
|
|
|
|
by hervature
643 days ago
|
|
> As they said though, the hash function on a string type requires looking at every element in the string. Maybe for the default hash function. As another commenter pointed out, your data may make the following hash very effective: s[0] + s[len(s)//2] + s[-1] which would be very fast. The point being is spending a day seeing if such a hash exists is worth it. |
|