react-apollo icon indicating copy to clipboard operation
react-apollo copied to clipboard

2.x getDataFromTree performance

Open srolel opened this issue 4 years ago • 1 comments

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

srolel avatar Mar 27 '20 09:03 srolel

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?

dmngu9 avatar Jul 08 '20 05:07 dmngu9