-
Notifications
You must be signed in to change notification settings - Fork 34
Optimizations to rendering and architecture (2nd try) #2519
Conversation
015e8d0
to
c89fa40
Compare
@siemiatj . Build fails in jenkins and it has a conflict. Pls fix. Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls fix the conflict file. Thanks
c89fa40
to
730bb66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls see my comments. This brings some performance boost but doesn't fix all the issues with webUI performance. Thanks
@siemiatj - I also spot that this crashes the UI. If you go to the URI from the snapshot and click on the three dots it will trigger those errs in console and UI becomes unresponsive |
@petrican what |
http://localhost:3000/window/181/1001579 . When you are on that page and click on the three dots on the top left you get that err |
#2473 remove some anonymous functions from Table components #2473 upgrade transitions library #2473 rewrite loader to a stateless component #2473 switch RawWidget to PureComponent #2473 change bunch of components to use PureComponent #2473 move more components to using PureComponent #2473 remove anonymous functions for WidgetTooltip #2473 disconnect Lookup from the store and extend PureComponent #2473 Lookup cleanup #2473 simplify RawLookup and remove anonymous functions #2473 remove anonymous functions from Header and switch to `getWidgetData` #2473 rewrite MasterWidget to properly use `getWidgetData` instead of `widgetData` object #2473 optimize header and inbox #2473 simplify data structures to widgets and remove unused props #2473 move Table to PureComponent #2473 create selector for MasterWindow data #2473 remove anonymous event handlers from DocumentListContextShortcuts #2473 switch Prompt to PureComponent #2473 revert `why-did-you-update` to stable for master #2473 add missing props
…dgetData` prop too
…idget #2473 small refactoring
ead5385
to
417d8d5
Compare
@petrican I can't reproduce anything like that, but I noticed the icon was not being shown so fixed this instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% in favor of the solution with the PureComponents but I am willing to make this compromise for a performance boost. Let's see how this goes. In the near future we might refactor to use functional components.
Yeah, I'd go with functional components in many places but with the current architecture we must boost performance whenever possible. |
Related to #2473
I'm not happy with this solution, as it does add some noise and additional code, but because some components were built this way and our data structures are like that - we can't really avoid that. Hopefully some of this will go away once we can switch tables to use redux.