mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-10 10:56:36 +00:00
optimization of nonstrict comparison
This commit is contained in:
@@ -174,7 +174,7 @@ fun <T> Iterable<T>.calculateDiff(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
{ t1, t2 ->
|
{ t1, t2 ->
|
||||||
t1 == t2
|
t1 === t2 || t1 == t2 // small optimization for cases when t1 and t2 are the same - comparison will be faster potentially
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user