Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread speed
Wed, Jan 13 2016 9:43 AMPermanent 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 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 AMPermanent 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 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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
Image