This significantly improved the performance of rendering the search results on the client. After the change, React and Marko performed on par for the client-side rendering test. As expected, this made no improvement to server-side rendering improvement of React.
The code and numbers need to be updated to reflect this improvement to React.
The existing (slower) code is doing the following:
Based on a suggestion on the Hacker News post, I made a change to use the index of the current iteration:
This significantly improved the performance of rendering the search results on the client. After the change, React and Marko performed on par for the client-side rendering test. As expected, this made no improvement to server-side rendering improvement of React.
The code and numbers need to be updated to reflect this improvement to React.