def uses_object_eq(a, b)
a == b
end
a = Object.new
b = Object.new
500.times { uses_object_eq(a, b) }
class C
include Comparable
def <=>(other) = 0
end
N = 2000
N.times { uses_object_eq(a, b) }
the include Comparable blows away the CME for C#==. This is a reduced version of something from ActiveRecord that appears in Lobsters.
the
include Comparableblows away the CME forC#==. This is a reduced version of something from ActiveRecord that appears in Lobsters.