Jump to content

Poor performance with too many components


ricardolb

Recommended Posts

I know it's a lot, i'm using a pagecontrol, is there a way to load tabs on demand? I see that there is the deferredRender option, which should do this, but it's not working or i'm not using it right.. does deferredRender work?

 

Really, you need to rethink the design of your interface/UI.  Decompose into frames and/or dynamically create as needed I think. You can probably use an approach similar to that used in the Demo "mdemo" application.  

Link to comment
Share on other sites

Is it the creation of the form, or the viewing of the form that takes 6 secs?

 

If you set FreeOnClose to false, open it, close it and open it again, does it still take 6 secs?

 

If you can define the form as a free form, and somehow create it in the

background as the app loads, and then just show it when needed, maybe that helps.

Link to comment
Share on other sites

Is it the creation of the form, or the viewing of the form that takes 6 secs?

 

If you set FreeOnClose to false, open it, close it and open it again, does it still take 6 secs?

 

If you can define the form as a free form, and somehow create it in the

background as the app loads, and then just show it when needed, maybe that helps.

 

I tested it now, and if I disable the FreeOnClose, the second time I open the form it opens really fast, so it's the creation of the form that it's taking 6 secs.

 

Thanks for the tips, I'll see what I can do, thank you all.

Link to comment
Share on other sites

Well, if it's the creation of the form, then is it only the creation of

visual elements, or is it also the loading of data from db taking time?

 

If you have data-aware components, notice that it will take some

time to update them as the queries are opened.

 

You may improve load time by not using data-aware components

and also by using direct-sql query components that does not

convert according to data type, i.e. that delivers only strings

which you then manually convert if needed and then load into

visual components

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...