Long prototype chains are slooooooooow
robotlolita opened this issue · 2 comments
robotlolita commented
In parts because we're not caching contextual lookups. But we could look at ways of collapsing the chains where possible. Siren's Reflection capability makes this more of a problem.
vendethiel commented
... And there's no way to statically detect whether reflection will be used on some particular type or not :/ (or even at all)
robotlolita commented
It's not as bad in Siren because reflection can only happen through the Mirror
object. I'll probably add an optimisation flag in the compiler for places where it can't guess through PGO though