Skip to content

InlineArray in generic class #106129

@iSazonov

Description

@iSazonov

Steps to Reproduce:

This example code does nothing with the parametric type value except to read and return as a result.
Therefore, it was surprising to find a strong difference in the code size and performance for value and reference types.
Is this expected?

See sharplab

Expected Behavior:

Code for value types and reference types is almost the same, performance is almost the same.

Actual Behavior:

Code for reference types is much larger and works 2-3 times slower.

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions