Improve the OOP ABI
Andrea Fontana
nospam at example.org
Mon Jan 22 17:20:46 UTC 2024
On Monday, 22 January 2024 at 15:46:02 UTC, ryuukk_ wrote:
>> As you see, this is a result for 1 million times hashing
>> strings. I can't even think in many situations people would be
>> doing 1 million time hashings. For a big program, you'll
>> probably get 200 string literals. And if you test, it is still
>> 0 milliseconds. So, MD5 is a pretty solution for that problem,
>> and this would be too much effort for actually no gain at all,
>> it could even create duplicate strings for no millisecond gain
>> :)
>
> It hashes class name, they'll probably never be more than 30
> characters, so md5 in your example would be 2x slower
>
> I think it worth doing more benchmarks, even few milliseconds
> gained is worthwhile, that's milliseconds you could spend doing
> more template work for example, it's additive
Indeed. And probably xxhash would be even faster if well
optimized, I guess.
Andrea
More information about the Digitalmars-d
mailing list