File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Loading Time Vs. Class size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Loading Time Vs. Class size" Watch "Loading Time Vs. Class size" New topic

Loading Time Vs. Class size

sriram sundararajan
Ranch Hand

Joined: Apr 08, 2003
Posts: 43
Hi All,

I merged 3 classes into a single class, after i did that my page loading time was increased. Is there any relationship between the Loading time vs. Class size. If so How can i improve the performance, without breaking that huge class?

steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
I wouldn't think this is your performance issue. Even if the class is pretty big it should load quite quickly. And it only has to load once. However, if you create many instances of it then it may consume quite a bit of memory.

What type of performance impacts are you seeing? Is it just at startup? Every time a method is called? Every time an instance is created? - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
I agree. Here's the link:
subject: Loading Time Vs. Class size
It's not a secret anymore!