On 25/07/14 11:46, Jonathan M Davis wrote:

Code that worked perfectly fine before is now slower, because it's using
opCmp for opEquals when it wasn't before.

Who says opCmp need to be slower than opEquals.

Even worse, if you define
opEquals, you're then forced to define toHash, which is much harder to
get right.

That might be a problem. But you can always call the one in TypeInfo.

So, in order to avoid a performance hit on opEquals from
defining opCmp

Assuming there is a performance hit.

--
/Jacob Carlborg

Reply via email to