]
Tristan Tarrant updated ISPN-12351:
-----------------------------------
Fix Version/s: 12.0.0.Final
(was: 12.0.0.CR1)
ImmutableListCopy makes too many copies
---------------------------------------
Key: ISPN-12351
URL:
https://issues.redhat.com/browse/ISPN-12351
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 12.0.0.Dev03
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Minor
Fix For: 12.0.0.Final
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.