2 ms·
I'd love to know _why_ there is such a significant difference in performance between Preact and React here. It's not like the React team doesn't profile it. The
by jameskraus 6y ago
I'd love to know _why_ there is such a significant difference in performance between Preact and React here. It's not like the React team doesn't profile it. They must be optimizing for other features over this performance metric.
- brundolf 6y agoOne thing preact does differently is ditch React's "synthetic events" system. React creates its own middleman wrapper objects for every single browser event that goes through it. This is where most of preact's size difference comes from, and I'd bet it has an impact on speed too. More info: https://preactjs.com/guide/v10/differences-to-react/#main-differences https://preactjs.com/guide/v10/differences-to-react/#main-di...