Abstract
This chapter concerns the internals of .NET types, how value types and reference types are laid out in memory, what the JIT must do to invoke a virtual method, the intricacies of implementing a value type properly, and other details. Why would we trouble ourselves and spend a few dozen pages discussing these inner workings? How can these internal details affect our application’s performance? It turns out that value types and reference types differ in layout, allocation, equality, assignment, storage, and numerous other parameters—which makes proper type selection of paramount importance to application performance.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Sasha Goldshtein, Dima Zurbalev, and Ido Flatow
About this chapter
Cite this chapter
Goldshtein, S., Zurbalev, D., Flatow, I. (2012). Type Internals. In: Pro .NET Performance. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4459-2_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4459-2_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4458-5
Online ISBN: 978-1-4302-4459-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)