Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1542

Add Path.isEmpty() with a default implementation.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: process
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                okram Marko A. Rodriguez
                Reporter:
                okram Marko A. Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: