3 ms·
There's no inline being done in this fix. The equality method has a check for a particular function pointer, and if found executes a fast path. By using a #de
by syncsynchalt 12y ago
There's no inline being done in this fix. The equality method has a check for a particular function pointer, and if found executes a fast path.
By using a #define to alias another name to that same function pointer, it hits the same fast path.
The equality method can't be inlined because ruby is a dynamic language and eql? can be redefined.