Immediate values like nil, false, true, and perhaps symbols are either singletons or only created in small numbers, but may be used as hash keys or in object ID comparisons. We should cache their object IDs and hash values permanently rather than construct a RubyFixnum every time.
Relates to #9088.
Immediate values like nil, false, true, and perhaps symbols are either singletons or only created in small numbers, but may be used as hash keys or in object ID comparisons. We should cache their object IDs and hash values permanently rather than construct a RubyFixnum every time.
Relates to #9088.