[Development] RFC: new moc feature

Kevin Kofler kevin.kofler at chello.at
Wed Jan 6 18:38:53 CET 2016


Knoll Lars wrote:
> Just as a side note: While perf ensures there’s no collisions between
> valid keys in the hash table, you still end up doing one string comparison
> in the end to ensure that your input string matches the key.

Why? Just document that passing an unknown string is undefined behavior, 
then if your invalid input happens to collide with the hash of something 
valid, it'll just be a synonym, undefined means undefined.

        Kevin Kofler




More information about the Development mailing list