Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce allocations in AbstractTypeMap (#72588)
Partial fix for #68996 Both SubstituteTypesWithoutModifiers and SubstituteNamedTypes allocate a temporary array that is used to potentially return an immutable array. Previously, this immutable array was allocated if needed, whereas we can not perform the extra allocation by utilizing ImmutableCollectionsMarshal as the array being wrapped is local to this method.
- Loading branch information