javac performance: 8-10% penalty for using Iterator for empty lists

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: tools
    • b56
    • generic
    • solaris_8

      javac performance could be improved about 8-10% simply by creating a single
      "empty" iterator object that is always returned by List.iterator() when the
      list is empty.

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: