react-apollo
react-apollo copied to clipboard
2.x getDataFromTree performance
I'm trying this with as little as 1 async API call, renderToMarkup is anywhere between 100-200ms but getDataFromTree is 500-1200ms. I found https://github.com/apollographql/react-apollo/issues/2122 but even with 2.3.1 and 2.5.8 I do not see any improvement.
Intended outcome: getDataFromTree performance should be comparable to renderToString (excluding async calls).
Actual outcome: getDataFromTree is 2-3 times slower than renderToString
Version 2.1.11, 2.3.1, 2.5.8
i saw my production tracing. My app has a lot of data fetching and getDataFromTree on server take nearly 200ms. Does this cause high CPU usage?