News for hackers. Stuff that matters.
Re:Show HN: Million 3 – Optimizing compiler for React by agluszak on Saturday February 03, 2024 @12:31AM (#39237783)
> Instead of traversing every node, Million uses a compiler to directly update dynamic nodes, resulting in O(1) time complexity.

This sounds very hand-wavy. What does it mean to "use a compiler to directly update dynamic nodes"?

Re:Show HN: Million 3 – Optimizing compiler for React by nardi on Saturday February 03, 2024 @01:41AM (#39238084)
It means you compile-in a direct reference to the node that needs to be updated when some property changes, so instead of searching the tree of n nodes to find it, you already have the reference.