Improve the OOP ABI

Andrea Fontana nospam at example.org
Tue Jan 23 11:49:49 UTC 2024


On Monday, 22 January 2024 at 20:46:26 UTC, Walter Bright wrote:
> On 1/22/2024 2:08 AM, Andrea Fontana wrote:
>> Why md5 and not a faster method?
>
> Md5 has an extremely remote chance of two class names hashing 
> to the same value. Some people have argued this is 
> unacceptable, though I opine that the odds are so low they are 
> unimaginable to humans.
>
> A replacement that has a perceptible collision rate will be 
> unacceptable.
>
> This is not a hash backed up by a string compare. The hash has 
> to be a substitute for the string compare.

So probably you like xxhash128

https://xxhash.com/

Andrea


More information about the Digitalmars-d mailing list