Speed up application startup


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
This question is something that we tackle during our training class...this is a very deep question.  The answer is, "Yes."  But knowing exactly where to start, especially in regards to your application is more difficult.

First, you should create a loadup sequence at the start of your application.  This should show a Splash screen and work on a thread if you can manage that.  You can then perform different tasks on different threads (i.e. perform any initialization tasks).  Once the once all of your pre-loading work is done, then you can show the login screen. 

Once the login is successful, you should really only need to loadup the VFP EXE and start your UDP session.

The key is to learn where your slowness is and then see if you can refactor your code to be more efficient, and then start using threads to remove the "slowness" from the end-users perception.  We have learned that people will wait for the application to start...but once it is started they want it to be fast Smile

P.S. continue to love working with your framework especially new version and now also the security editor and ddt. Saves tons of time

Thank you very much, we truly appreciate these comments!

Marcel Heitlager
Marcel Heitlager
StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)
Group: StrataFrame Users
Posts: 84, Visits: 835
Is there a recommended way to do that?  I'm using both Strataframe and VFP through UDP.  It is a little slow at startup especially on slow machines (duh).

But how would you recommend starting up app and login screen at same time? If login fails, just close entire app.  But if succeeds everythings allready there (or almost).

Thanks,

Marcel

P.S. continue to love working with your framework especially new version and now also the security editor and ddt. Saves tons of time.Smile

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search