summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/file/executable.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2021-06-17 11:29:28 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commit7d252186fe803aa5e1fa37c953609266a2d8ba1d (patch)
tree75a96ce2e12cc25c53c6d3fd88b0f2f2425afa1d /spec/ruby/shared/file/executable.rb
parent8c68f112d8ec9f5a9a416fc69602855bf43c4dd6 (diff)
Simplify known class check for singletons
Singleton classes should only ever be attached to one object. This means that checking for the object should be the same as checking for the class. This should be slightly faster by avoiding one memory acccess as well as allowing us to skip checking if the receiver is a heap object. This will be most common for calling class methods.
Diffstat (limited to 'spec/ruby/shared/file/executable.rb')
0 files changed, 0 insertions, 0 deletions