Avoid Iterator
allocations when calling Sort.isSorted()
#2445
Labels
type: task
A general task
Milestone
Sort.isSorted
uses internallyisEmpty
which defaults toStreamable.isEmpty
that obtains an iterator to check emptiness. We should implementisEmpty()
properly to check whether the backing object is empty to avoid allocations.The text was updated successfully, but these errors were encountered: