object.opEquals return type
Frank Benoit
keinfarbton at googlemail.com
Tue Feb 26 16:03:56 PST 2008
Putting the int/bool performance difference in relation to the whole thing:
Calling opEquals makes a virtual function call. Then at least the given
object reference is compared once against this. For a useful opEquals
much more can happen, eg. a dynamic cast...
Now, is it still a _relevant_ performance hit (if any), to use bool
instead of int here?
More information about the Digitalmars-d
mailing list