4 ms·
and yet I'm pretty sure JS can inline just fine
by SemanticStrengh 4y ago
and yet I'm pretty sure JS can inline just fine
- munificent 4y agoIf by "just fine" you mean, "with incredible engineering resources funded by a small number of large companies with deep pockets and with some performance cost to check that the optimization is still valid", yes.
- duckerude 4y agoIt can, but it doesn't have a "do reasonable things" mode. Instead it notices when you do something unreasonable and undoes its optimizations.
- masklinn 4y agoSure, so can pypy. But that means you have to add all sorts of dependency tracking, such that you are able to deoptimise any function affected by mutation on things which were optimised in or out. This means your complexity increases very fast, very high, before you can have anything which actually works.