optimization of nonstrict comparison

This commit is contained in:
InsanusMokrassar 2023-03-07 19:14:43 +06:00
parent 8b9c93bc10
commit d6402c624e
1 changed files with 1 additions and 1 deletions

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
}
}
)