A brief note about slot access cost in Common Lisp

230 · Turtleware · May 27, 2026, 11:41 a.m.
Summary
This blog post provides an in-depth analysis of the slot access costs in Common Lisp's object system, CLOS. It contrasts the performance of structure objects with standard instances, highlighting the implications of using the Metaobject Protocol (MOP) for customization. The author explains how different access methods impact performance and presents benchmarking results comparing various implementations of Lisp. The findings suggest that while access through generic functions offers flexibility, it incurs additional costs compared to direct memory access for structures.