Rewrite Kernel#tap with Ruby #3281
Conversation
Second thought you might also want to do this for |
Related explanation submitted by @k0kubun on twitter:
|
Absolutely |
Lies. Damned lies. Statistics. Did you find out WHY it is faster? |
It is not meant it is faster in general, but in this case of |
WHY is it faster. That is the question. Concluding that Ruby is faster here is uninteresting. Do a root cause analysis. Then we learn something perhaps. |
Everything is written in this thread actually. |
I don't totally follow from this thread alone. However via the linked twitter conversation: https://twitter.com/k0kubun/status/1279128061355495425
So to be explicit. While this unlocks JIT improvements, it is ALSO faster even without JIT. Possibly due to the reduction in calling vm_exec_core |
because Ruby is faster than C.