aspose file tools*
The moose likes Performance and the fly likes A simple way to shorten startup time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "A simple way to shorten startup time" Watch "A simple way to shorten startup time" New topic
Author

A simple way to shorten startup time

Xu Song
Greenhorn

Joined: Nov 16, 2001
Posts: 20
Hi all,
I think most of you have the experience:After launch a Java application,the sequential applications' startup time is shortened significantly.


My way-- To put a simple Swing application in the 'startup' folder of 'START->PROGRAMS' in Windows XP/2000/98.


To get good performance for MS Office program,Microsoft also puts initilization process at Window's start time.Why not let Windows do the same job for Java applications?This could make you have better position at customer side:"See,after window's long startup procedure,our Java applications run very quick!".
Your comments would be welcome.

Regards,
Xu Song

[ September 16, 2004: Message edited by: Xu Song ]
[ September 16, 2004: Message edited by: Xu Song ]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

You have a general longer startup everytime, to shorten the time to run a java-program?
Great idea!

How do you get the customer out of his room for five minutes, to add a hidden swing-app to his autostart-folder, and reboot the system?

The tiger (java-1.5) is starting much faster than -1.4.2 used to start - at least on linux.


http://home.arcor.de/hirnstrom/bewerbung
Xu Song
Greenhorn

Joined: Nov 16, 2001
Posts: 20
The hidden swing-app is added to customer autostart folder after my software is installed on the PC.Actually I call this operation with:'init. setup for optimization'--one mandatory step of the whole installation procedure.

That's the same way when you install MS office,or some other huge MS applications:The installation wizard will setup initilization(similiar to add into autostart folder,could be in windows register) without prompt.

This procedure will shorten startup time on Java tiger platform as well.BTW,I found starting jEdit software would take longer time if I use tiger instead of JRE 1.4.2.It's tested on Windows 98.

Viele Gr��e

Xu Song
Michael Herrmann
Ranch Hand

Joined: Dec 06, 2003
Posts: 60
I can only speak to you from the perspective of a user, but I personally hate programs that write themselves into my windows' autostart. If every program did this, your computer would be superfast. After having needed 30 mins for starting up. Just MS' doing so is no reason to copy this. If you do it nevertheless, be so kind to make it easily detachable during the installation for users like me.

Auch viele Gr��e,
Michael Herrmann
 
jQuery in Action, 2nd edition
 
subject: A simple way to shorten startup time
 
Similar Threads
tomcat
Start when windows starts
how do you get one song in mp3?
How to put my JOptionPane to the top of my desktop windows
Dynamic JTable column sizing with horizontal toolbar