@wycats @stefanpenner hey guys, is there any high level overview of what makes Glimmer2 so much faster than what Ember used before?
-
-
@wycats@chancancode so templates -> opcodes as wire format, is that converted to functions at runtime or interpreted? Cc@dan_abramov -
@en_JS@wycats@dan_abramov the wire format are relatively basic instructions, mostly just to front-load template parsing cost at build time -
@en_JS@wycats@dan_abramov the templates (wire format) are JIT compiled into runtime opcodes before use, which is interpreted by the VM -
@en_JS@wycats@dan_abramov we could in-theory compile runtime opcodes into JS when they become hot (loop bodies, hot components, etc) but -
@en_JS@wycats@dan_abramov we haven't implemented that yet. The previous version (htmlbars) used to compile templates AOT into JS functions -
@en_JS@wycats@dan_abramov which essentially made them opaque to the runtime and also very generic. Turns out there are a lot of runtime... -
@en_JS@wycats@dan_abramov info we could use to optimize templates which makes the interpretation cost worthwhile. -
@en_JS@wycats@dan_abramov For example, {{foo}} could be a lookup, helper or component invocation which cannot be triaged at build time. - 15 more replies
New conversation -
-
-
@wycats@chancancode sweet, thanks!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.