mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-17 13:53:49 +00:00
optimization of nonstrict comparison
This commit is contained in:
parent
8b9c93bc10
commit
d6402c624e
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user