diff options
author | Aaron Patterson <[email protected]> | 2020-11-04 12:04:23 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-11-04 14:40:50 -0800 |
commit | 70680feeea9e9e2c13ab5e456c2d0ffe0142bb12 () | |
tree | 371004139167116412982c61b661f9a990021598 /lib | |
parent | a8581ce673e14ba5ff48d0a3cb71368daa82558b (diff) |
Simplify setting instance variables
Since T_OBJECT objects come to life as embedded objects, that means that ROBJECT_NUMIV will always return a _minimum_ of ROBJECT_EMBED_LEN_MAX. If ivup.index is *greater* than ROBJECT_NUMIV, then we know that the object *must not* be an embedded object. Thus we can skip the ROBJECT_EMBED_LEN_MAX check as well as initializing internals of embedded objects.
Notes: Merged: https://.com/ruby/ruby/pull/3734
0 files changed, 0 insertions, 0 deletions