opt_aref shows up as the top "not optimized instructions" on lobsters, which means we often use dynamic dispatch for #[] method calls.
We should:
- Check which classes are used by
opt_aref but not specialized by try_rewrite_aref
- I bet most of them are
Hash on Rails benchmarks, and some Integer on optcarrot, but it's the kind of thing to be confirmed here.
- Optimize the un-optimized classes that appear most frequently
opt_arefshows up as the top "not optimized instructions" on lobsters, which means we often use dynamic dispatch for#[]method calls.We should:
opt_arefbut not specialized bytry_rewrite_arefHashon Rails benchmarks, and someIntegeron optcarrot, but it's the kind of thing to be confirmed here.