Templates are slow.

pineapple via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 9 05:12:45 PDT 2016


On Friday, 9 September 2016 at 12:09:32 UTC, Steven Schveighoffer 
wrote:
> I just had a thought. If you hash the string, and then compare 
> the length of the string and first and last character along 
> with the hash, what are the chances of it being a false 
> positive?

Any chance of a false positive is nontrivial when hashes are 
being compared so often.

Never, never ever in production code are you to assume that 
hashes and other non-definitive data can be used to guarantee 
uniqueness.



More information about the Digitalmars-d mailing list