Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12351

ImmutableListCopy makes too many copies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 12.0.0.Final
    • 12.0.0.Dev03
    • Core
    • None

    Description

      An array copy is not needed when creating a new ImmutableListCopy instance from another ImmutableListCopy.

      The constructor with 2 list parameters can also avoid one array allocation by pre-allocating the array, or by using one list's array when the other list is empty.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: