Does Create method of form affect the performance?

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Does Create method of form affect the performance?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm

by scott >> Thu, 18 Dec 2003 1:44:46 GMT

Hi,
To make GUI more colorful, we added some codes at form "create" method to define the color of controls of forms, Does the "create" method affect the performance of the form which run via thin client mode?
I read through the Technology and White Paper "Thin Client Performance Consideration" and not found anything about it.

I'd appreciated if someone can revert it.

Scott
Bizpoint System Pte Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Does Create method of form affect the performance?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm

by Patwos >> Thu, 18 Dec 2003 8:05:34 GMT

The following statement from the "Performance Recommendations" section of the white paper answers your question:

"Define as much as possible in the painter. The form definition is cached on the Presentation Client after the first create of that form and does not need to be resent for future creates. The more controls created or changed at run time the larger the number of requests passed to the Presentation Client and the more chance that additional messages will result."

If you really want to know the impact of programmatically setting the colours in the create method, try using the thin client tracing to see how many additional messages are required to be sent to handle the programmatic setting of the colours versus setting them to the desired colour in the painter. It would also be worth checking how much overhead this causes on a connection that matches your expected production Network connection speed and latency.

You may also want to consider using the JADE Skins feature to help enhance your GUI without writing any code.

Hope that helps,
Pat.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests