JSX could have been 2x faster if it was designed more optimally for JS VMs!
Let's see what design decisions make JSX slow and how we could speed it up.
🧵🪡🧶
Did you know that without 0x5F3759DF (magic number) Qake (the game) would not have been possible?
The fast inverse square root is 🤯 code popularized by Quake, which at first sight looks like complete nonsense.
Google: 0x5F3759DF
🧵🪡🧶
Amdahl's law: the nightmare of a perf engineer!
"The overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved part is actually used"
After 15 years at Google and 10 years on @angular I am excited to announce that I am moving onto the next chapter in my professional life. I will be joining @builderio as their CTO to help empower anyone to create blazing fast sites, with some very exciting updates coming soon.
It's best to name your variables positively.
Negative variables take longer to process in your brain because they can be part of negated expressions, creating double negatives.