why would you assume reactive frameworks to be slow?
s
spierce7
11/20/2020, 5:43 PM
not assuming to be slow, I’m just assuming it’s not suitable for something like a gaming engine to be written in it. There is always going to be some amount of overhead to finding the changes in the shadow dom that’s generated.
j
jw
11/20/2020, 5:51 PM
there is no shadow/virtual dom. the compiler plugin rewrites composables to allow changes to propagate granularly. composables are not pure functions to an intermediate tree that then needs diffed.
☝️ 1
s
spierce7
11/20/2020, 5:59 PM
@jw Oh - I see. Thanks for correcting my poor assumption. What do you mean
propagate granularly
?
j
jw
11/20/2020, 6:00 PM
if you only change a single property of a composable then that is all that's changed in the next rendering