Automatic inline allocation of objects
Julian Dolby · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1997
Object-oriented languages like Java and Smalltalk provide a uniform object model that simplifies programming by providing a consistent, abstract model of object behavior. But direct implementations introduce overhead, removal of which requires aggressive implementation techniques (e.g. type inference, function specialization); in this paper, we introduce object inlining, an optimization that automatically inline allocates objects within containers (as is done by hand in C++) within a uniform model. We present our technique, which includes novel program analyses that track how inlinable objects are used throughout the program. We evaluated object inlining on several object-oriented benchmarks. It produces performance up to three times as fast as a dynamic model without inlining and roughly equal to that of manually-inlined codes.
Cited by 78 works. doi:10.1145/258915.258918
Authors
References
- Smalltalk-80: The Language and its Implementation
- The Annotated C++ Reference Manual
- A data locality optimizing algorithm
- Object structure in the Emerald system
- Optimizing dynamically-dispatched calls with run-time type feedback
- Functional Programming
- Object-oriented type inference
- Optimizing dynamically-typed object-oriented languages with polymorphic inline caches
- Object structure in the Emerald system
- Refinement types for ML