String comparison performance question
A team member claimed that comparing strings representing points was quicker than comparing points. As this seemed unbelievable (string comparisons are slow, right?) I wrote a small test for this:
import org.apache.logging.log4j.kotlin.Logging
import java.awt.Point
public object Comparisons : Logging {
private fun comparePoints(count: Int) {
val start = System.currentTimeMillis()
val set = mutableSetOf()
repeat(count) {...