Preact: Strictly equal VNodes should short-circuit diffing

Created on 5 Mar 2019  路  5Comments  路  Source: preactjs/preact

Libraries like react-redux are relying on this behavior for optimizations.

Preact X: https://codesandbox.io/s/4q307zk7o9
React: https://codesandbox.io/s/m3o2qy7398

bug important performance

All 5 comments

Surprised v10 is being rolled out without resolving this first as some apps will experience massive slowdowns by upgrading.

No apps should be faster by upgrading normally, are you experiencing something else @asilvas

Yup we didn't have that optimization in 8.x either iirc.

I see, wasn't aware this was a pre-existing issue. In my testing it resulted in significant slowness compared to React, and must have assumed it was related to v10.

This was added earlier this year with #2386 :tada: Updating the codesandbox to the latest version of Preact resolves it :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nopantsmonkey picture nopantsmonkey  路  3Comments

SabirAmeen picture SabirAmeen  路  3Comments

rajaraodv picture rajaraodv  路  3Comments

skaraman picture skaraman  路  3Comments

matuscongrady picture matuscongrady  路  3Comments