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

Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 21
    • None
    • core-libs
    • b12

    Description

      LinkedList is used in a few places in ServerImpl.
      There is only add/iterator/clear/size calls on this lists. No removes from the head or something like this. ArrayList should be preferred as more efficient and widely used (more chances for JIT) collection.

      Attachments

        Issue Links

          Activity

            People

              aturbanov Andrey Turbanov
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: