Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.11.1
Description
Ruby 3.2 introduced an inline cache scheme based on the "shape" of an object. The object's shape depends on what instance variables were set on the object and in what order. Lazily initializing an instance variable can cause poor inline cache performance because the order in which the IV is set may not be predictable.
The Ruby version of Avro has an IV that is lazily initialized, and I would like to eagerly initialize it so that we can improve cache performance.
Attachments
Issue Links
- links to