optimization of nonstrict comparison

This commit is contained in:
InsanusMokrassar 2023-03-07 19:14:43 +06:00
parent 8b9c93bc10
commit d6402c624e

View File

@ -174,7 +174,7 @@ fun <T> Iterable<T>.calculateDiff(
}
} else {
{ t1, t2 ->
t1 == t2
t1 === t2 || t1 == t2 // small optimization for cases when t1 and t2 are the same - comparison will be faster potentially
}
}
)