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

Improve ModuleHashesBuilder

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
      None

      Description

      ModuleHashesBuilder can be improved by:
      - using ArrayDeque instead of LinkedList
      - replace calls to contains() with calls to methods that return special values when the element is missing.
      - avoid using N^2 algorithm by using HashSet
      - using the name "todo" for the work stack

        Attachments

          Activity

            People

            Assignee:
            martin Martin Buchholz
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: