Eu 3.1.1 Speed
- Posted by Rad Aug 19, 2009
- 1084 views
Hi,
I am using Eu3.1.1 with win32lib v0.70.19 + Judith Evans IDE 1.0.4 for my projects on a Sony VAIO 1.60GHz. + 1.2GB RAM + WinXP SP2
I have a project with total 43 screens/windows.
The program sequence is : 1] Display Splash screen 2] Accept and Authenticate User login details 3] Generate Menu Items depending on User Category/Access Rights 4] Display Main Application Window with generated menu
In the Main Window I have around 28 common include files (win32lib.ew + other .ew/.e files) having various global functions/procedures under [Begin/Version] section. This section also connects to the ODBC/MySQL Database and sets up global variables for the application.
All the other windows in the project have been specified as child windows of the Main Window.
Each child window has its own variables, functions, procedures defined in its own [General] section. w32HOpen and w32HActivate sections generate required Combos, ListViews, TreeViews etc. dynamically for that child window.
The total exe size after binding comes to around 2.5MB
My concern is the high time taken by the exe at the initial loading. It takes almost 110+ seconds to display the first Splash screen.
I put the display statements at the beginning and end of the [Begin] section of Main Window and also at the [General] section of all windows.
The [Begin] section (including ODBC/MySQL Database connection) was completed within first 7-8 seconds, but it took a considerable time to arrive at first [General] section. Once the control gets to [General] section, all the windows are processed within next 15-17 seconds and the Splash screen is displayed.
For similar projects (same [Begin/Version] section) with -
22 windows the load time is about 48 seconds.
Opening the .exw file for the project, the work being done between the end of [Begin/Version] and first [General] section is of creating all the controls of the application.
Is there any way I can reduce this initial delay in loading the program?
Thanks & Regards, Rad.