Description
We have lots of path.size() == 0 which for ImmutablePath is a recursion. A path.isEmpty() is a O(1) call. Given how heavily used ImmutablePath is, we should provide Path.isEmpty() with the following default implementation.
public default boolean isEmpty() { return this.size() == 0; }
Attachments
Issue Links
- links to