Abstract
Late binding is binding that happens at run time, and it is the essence of what makes a language dynamic. When binding happens at run time as opposed to compile time, it’s usually several orders of magnitude slower. And that’s why the DLR has a mechanism to cache the late-binding results. The caching mechanism is as vital as air to a framework like the DLR, and it’s based on an optimization technique called polymorphic inline caching. Although caching is not a feature you would normally use directly, it is always there working for you behind the scenes. The DLR uses what are called binders to do late binding. These binders have two main responsibilities—caching and language interoperability. In this chapter, we are going to look at the caching aspect of binders. The next chapter will explore their role in language interoperability.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Chaur Wu
About this chapter
Cite this chapter
Wu, C. (2010). Late Binding and Caching. In: Pro DLR in .NET 4. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3067-0_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-3067-0_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-3066-3
Online ISBN: 978-1-4302-3067-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)