Skip to content
Discussion options

You must be logged in to vote

An array is a fundamental type that is part of the runtime, so the JIT can make various assumptions about it. List<T> is, strictly speaking, just a library type like any other, so the JIT can't make assumptions about what the _size field means.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jnyrup
Comment options

@MichalPetryka
Comment options

@EgorBo
Comment options

EgorBo Jul 7, 2023
Collaborator

@jnyrup
Comment options

@En3Tho
Comment options

Answer selected by jnyrup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants