Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
speed |
Wed, Jan 13 2016 9:43 AM | Permanent Link |
Ronald | Hi,
This is not a problem, but an observation. I have a TTable connected to a grid, the table has 17 rows. In a function I loop through this this table about 200 times, The whole function takes up 40 seconds. Then I tried it with TTable.DisableControls. Now it is done in 1 second! I could not believe my eyes, because I did not try this before because I did not expect this result with only 17 rows! I hope it can help someone that is looking for speed and forgets to look at the obvious. Greetings, Ronald |
Wed, Jan 13 2016 10:54 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Ronald,
<< This is not a problem, but an observation. I have a TTable connected to a grid, the table has 17 rows. In a function I loop through this this table about 200 times, The whole function takes up 40 seconds. Then I tried it with TTable.DisableControls. Now it is done in 1 second! I could not believe my eyes, because I did not try this before because I did not expect this result with only 17 rows! I hope it can help someone that is looking for speed and forgets to look at the obvious. >> Are you talking about an EWB TDataSet in a client-side EWB application, or a Delphi TTable on the server side ? Tim Young Elevate Software www.elevatesoft.com |
Wed, Jan 13 2016 11:15 AM | Permanent Link |
Ronald | Tim Young [Elevate Software] wrote:
<Are you talking about an EWB TDataSet in a client-side EWB application, or a Delphi TTable on the server side ?> It is an EWB TDataSet in a client-side EWB application. |
Wed, Jan 13 2016 11:51 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Ronald,
<< It is an EWB TDataSet in a client-side EWB application. >> Yes, that is pretty normal. If you don't disable the controls or use a TDataSet instance that isn't bound to any controls, then *every* control needs to be updated for every single row navigation operation. Any time you update the UI in a web application, it's going to be slow (relative to just straight code execution). Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |