Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8325169

Reduce String::indexOf overheads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • core-libs
    • None
    • b09

      Interpreter overheads of String::indexOf in particular seem excessive, with many redundant checks, partially pointless clamping of from-/toIndex (using Math::max) and other things.

      Simplifying, streamlining and specializing the implementations rather than delegating significantly improves performance.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: