2 ms·
Yes - that is a performance optimisation. I don't think comparing everything by value makes or breaks the implementation.
by robertlagrant 3y ago
Yes - that is a performance optimisation. I don't think comparing everything by value makes or breaks the implementation.
- xxs 3y ago>I don't think comparing everything by value makes or breaks the implementation. Nothing much to think -- distinct objects must have distinct references [e.g. new String("a")!=new String("a')], literals must have the same references for the same values [e.g. "a"=="a"].
- robertlagrant 3y agoWhy does it break the implementation, other than performance?