3 ms·
You’re welcome :) There’s more discussion here:https://mobile.twitter.com/Shub7241/status/1157004907775324160 https://mobile.twitter.com/Shub7241/status/115700
by gactleaks 7y ago
You’re welcome :)
There’s more discussion here:https://mobile.twitter.com/Shub7241/status/1157004907775324160 https://mobile.twitter.com/Shub7241/status/11570049077753241....
- hajile 7y agoWhen discussing structural changes, it seems like lifting constant fragments a compile time wasn't discussed. There's a Babel React optimizer to do exactly this. Lift those to their own functions. Since those functions don't take any props or state, their values are cached almost indefinitely.
- deleted 7y ago[deleted]
- gactleaks 7y agoA generalisation of that optimisation is discussed here: https://twitter.com/MateuszOkon/status/1159222281874366464 https://twitter.com/MateuszOkon/status/1159222281874366464