O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the Compact CLR Engine

In software, developers usually must make a trade-off between fast code and code that uses little memory. That is, certain design decisions can err on the side of faster performance that consumes a lot of memory (for example, by caching results in memory) or processes can be slower and use very little memory (for example, by spending central processing unit cycles calculating certain results every time they are asked for). Under the compact CLR, trading random access memory (RAM) usage for speed doesn't always work. You must write code that is both memory-efficient and fast at the same time. To understand why, you must understand the inner workings of the garbage collector (GC) and the just-in-time (JIT)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required