Performance
See original GitHub issueDue to the increasing size of the parsers and UIComponents we’re loosing performance. We should investigate what causes the laggy behaviour and then fix it.
e.g. shouldComponentUpdate
could help fixing problems with the UI performance.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Performance Definition & Meaning - Merriam-Webster
1 · the execution of an action · something accomplished : deed, feat ; 3 · the action of representing a character in...
Read more >Performance Bicycle - Your Next Best Ride
Shop road, mountain & gravel bikes. Huge selection of parts, components & clothing from Specialized, Shimano & more!
Read more >Performance - Wikipedia
A performance is an act of staging or presenting a play, concert, or other form of entertainment. It is also defined as the...
Read more >86 Synonyms & Antonyms for PERFORMANCE - Thesaurus.com
Find 86 ways to say PERFORMANCE, along with antonyms, related words, and example sentences at Thesaurus.com, the world's most trusted free thesaurus.
Read more >Performance Definition & Meaning - Dictionary.com
performance · a musical, dramatic, or other entertainment presented before an audience. · the act of performing a ceremony, play, piece of music,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We can declare components with simple props and states as
PureComponents
. These components already callshouldComponentUpdate()
with a shallow comparison. This could reduce code.This is especially applicable for the input fields. Then, we have to implement
shouldComponentUpdate()
only for the other components.We still have a few unneccessary
render()
calls, because in some components we are using state and props for the same property (usually a style-subprop). An example can be found in Style component (see code below).This component is a mixture of a controlled and uncontrolled component. It will be rendered twice due to the calls to
onStyleChange
andthis.setState
on the same change event.I think we should remove the state and let the parent handle the change. This also complies with common react patterns.