Open
Description
Currently, this array is allocated even in the following situations:
- When the array to be copied has length 0
- When the array to be copied has length > 0 but only null elements
This should be optimized by waiting to allocate the array until at least one non-null element is found, and using a constant SymbolToken[0]
when no annotations are present.
Further, we should double-check the logic that causes an array with length > 0 and only null elements to exist, to make sure it is not being wastefully over-allocated.
Metadata
Metadata
Assignees
Labels
No labels