Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The trouble is, those comparisons might be relatively cheap compared to a DOM update, but they still aren't free. Even with an efficient overall algorithm and with all the multiples having a key property set to minimise unnecessary changes, if you're dealing with hundreds of components in your page that need rendering at any given time and that rendering in turn relies on significant conditional logic or derived information, those comparisons to see what rendering is needed (or, if you prefer, to determine whether re-rendering is needed) start to add up.


What's the scenario where you need to re-render hundreds of components? Is this something like a state change propagating down a long line of components? If you assume a roughly balanced tree like structure to your components though wouldn't even this still be bounded logarithmically by the number of components on the page?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: