We notice that our editor is getting slower and slower, and this is certainly due to the fact that we are making it bigger and bigger and are adding more components each time. We are looking to reduce the load on the editor by bundling parts of the app into modules, but are not certain whether this is a good solution.
I read the App performance best practices post and wanted to ask a few general questions to increase our understanding of building performant apps:
-
What is the main contributor to poor performance? Is it a lot of components, or the front-end logic inside of those components? For example, does adding 100 component impact performance at all, or only when too much JS logic is added to those components?
-
How does lazy loading in Retool apps translate to better performance in the editor. For example, if I create the 'heavy' parts (parts with a lot of component and JS logic) of our app in a module, and put this module in a modal, does it impact performance in the same matter as embedding the module in the app without the modal?
-
Should we "clean-up" orphaned components? I noticed that sometimes the console shows notifications about ophaned components, which are deleted in the past. Somehow these still seem to be present and may impact performance. Is there a way to prevent/ fix this?