users
[Top] [All Lists]

Pre-loaded JPG ImageIcons

To: <users@xxxxxxxxxx>
Subject: Pre-loaded JPG ImageIcons
From: "Chip Dunning" <cdunning@xxxxxxxxxxxx>
Date: Wed, 26 May 2004 11:37:52 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcRDN2gcJZHImUz6QaCZ2oGd1uGa6Q==
Thread-topic: Pre-loaded JPG ImageIcons
I have inherited this program from a previous employee and have been tasked at 
reducing its current throw weight - during runtime it weighs in at about 230M 
of memory. The reason its so heavy is that the program makes use of about 12M 
in graphic files - everything from dialog background to buttons is done by 
loading a JPG - all into ImageIcons. For easy reference all of the graphics are 
contained as final static members of a single class (AppGraphics) - making 
reference as easy as AppGraphics.CancelButton

I believe he did this for displaying speed - since many of the graphics are 
reused throughout the program, but as the number of graphics rise this program 
is becoming a real porker.

Any ideas that don't involve taking an axe and hacking my way through.



Chip
-----
"The reason the mainstream is thought of as a stream is because it's so 
shallow" --George Carlin
 

<Prev in Thread] Current Thread [Next in Thread>
  • Pre-loaded JPG ImageIcons, Chip Dunning <=