Skip to content

Conversation

jeremy-deutsch
Copy link
Contributor

Right now, copyText is generated for every row in the table on every re-render of ReduxViewer. This is pretty bad for Flipper performance, with re-renders spending 300-500 ms just running buildRow:
flipper-performance
This PR uses the new Flipper 0.46 feature of generating copyText lazily by passing a function instead of a string, so that now re-renders take very little CPU time:
flipper-good-performance

This PR also has some changes to yarn.lock - since the real latest version of Flipper is 0.46, I updated the flipper dependency in the lockfile to 0.46.

@jk-gan jk-gan added the enhancement New feature or request label Jun 13, 2020
@jk-gan jk-gan self-assigned this Jun 13, 2020
@jk-gan jk-gan linked an issue Jun 13, 2020 that may be closed by this pull request
Copy link
Owner

@jk-gan jk-gan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jk-gan jk-gan merged commit 162b513 into jk-gan:master Jun 13, 2020
@jeremy-deutsch jeremy-deutsch deleted the lazy-copy-text branch June 14, 2020 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json.stringify() lazily
2 participants