3 ms·
If there's only one backing type being looked up. If there's more than one, the inline cache thrashs like they're saying.
by monocasa 6y ago
If there's only one backing type being looked up. If there's more than one, the inline cache thrashs like they're saying.
- jashmatthews 6y agoJRuby has had polymorphic inline caches for like a decade and CRuby will actually cache multiple types in the method cache as long as they cache the same method since https://github.com/ruby/ruby/pull/2583 https://github.com/ruby/ruby/pull/2583
- monocasa 6y agoJRuby is JVM and not really what I'm talking about. And still on CRuby if you have any dynacism, you thrash your cache.