Symbian
Symbian OS Library

FAQ-0549 I have a very large application which takes over 20 seconds to load. What can I do to improve the situation?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: Deployment
Created: 01/03/2001 Modified: 06/25/2001
Number: FAQ-0549
Platform: Not Applicable

Question:
I have a very large application which takes over 20 seconds to load. What can I do to improve the situation?

Answer:
Three things in order of importance:
  • Specify an explicit classpath (removing all default options) using the -classpath interpreter option rather than -cp.

This means the filing system isn't scanned every time the class loader looks for a class from classes.zip.
  • Increase the initial heap size to circa 2 MB using the -ms interpreter option e.g. -ms 2m

This avoids frequent new allocations being needed.
  • Use a splash screen so that the user knows something is happening.