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

no, it doesn't compare to DOM, it compares to the last result of render - an important difference performance-wise. the DOM is many times slower to query than plain objects.

also remember big-O notation doesn't really capture the essence of the problem here. looping through and querying N DOM elements is probably orders of magnitude slower than doing the same with N objects in memory



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

Search: