3 ms·
It's because MRI's implementation is simple. They haven't bothered caching per class because it takes more code. However JRuby caches per class.
by FooBarWidget 14y ago
It's because MRI's implementation is simple. They haven't bothered caching per class because it takes more code. However JRuby caches per class.
- enebo 14y agoIf you have to go and look up the method again (even ifcached) because the callsite cache is invalid then you already lost. Constantly invalidating the callsites is the real problem with this pattern.