This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Reasons for slow applikation startup?


Hello!

I wrote a small applikation using swt and lwvcl (a lightweight gui library that can be targeted on both awt/swing and swt) and I have a problem that startup is very slow.

On my P4-2.6Ghz it needs about 3s (5s on windows) to come up, while CPU-useage is somewhere at 20% or so.
I profiled the applikation with gprof, however I do not really understand the output.
As far as I can see this are the slowest methods during program-startup:


25.00 0.02 0.01 17 0.59 0.59 org::zaval::data::e::b(int)
25.00 0.03 0.01 8 1.25 2.50 org::eclipse::swt::internal::image::LZWCodec::decode()
12.50 0.04 0.01 13 0.38 0.38 org::eclipse::swt::widgets::Shell::topHandle()


I statically linked swt, lwvcl and my code into that library, the only external dependencies are libgcj and the x11-stuff linked to libSwt-motif.
Any ideas how startup could be improved? Can gprof tell me by which methods LZWCodec was called?


Thanks a lot and good luck, lg Clemens


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]