TheLinuxDuck
04-04-2002, 06:04 PM
Do you remember that app I was telling you about a number of months ago? It's an image loading app that will (hopefully and eventually) print them out in a format needed by the company I work for.
It's pretty much ready, minus a few minor things, and the printing portion... but... it is SSSOOOOOO SLLOOOOOWWWWW.. .it's not even funny how slow it is.
The problem is that it may have to parse 40-50 700k jpegs' at a time. And the conversion of them takes forever..
The app converts them to a smaller thumbnail, and then dumps them, 4 at a time, into a JPanel, and then that becomes each Pane in a JTabbedPane.
It could be how I've written the code.. it could be the fact that I do so much error checking. or it could just be java's getScaledInstance method. I dunno.. the speed isn't as important as the printing part, though.. but, I'd much rather the speed be faster, because the people who are going to use this will prolly appreciate any speed addition I can get. (^=
I haven't touched the source in months, so I'm a little hazy on it.. but, I DO know that it needs to be written. Most of the content is in 1 big java file, and only a few minor things are external. I really need to break it down into pieces.
But, for my first major java project, I think I did ok.. I was just looking through it and thinking "I wrote this??" (^=
Anyhow, your wisdom would be greatly appreciated!
I can make the code available, if you wish... but I forewarn you, it's messy, long, and not commented. (^=
It's pretty much ready, minus a few minor things, and the printing portion... but... it is SSSOOOOOO SLLOOOOOWWWWW.. .it's not even funny how slow it is.
The problem is that it may have to parse 40-50 700k jpegs' at a time. And the conversion of them takes forever..
The app converts them to a smaller thumbnail, and then dumps them, 4 at a time, into a JPanel, and then that becomes each Pane in a JTabbedPane.
It could be how I've written the code.. it could be the fact that I do so much error checking. or it could just be java's getScaledInstance method. I dunno.. the speed isn't as important as the printing part, though.. but, I'd much rather the speed be faster, because the people who are going to use this will prolly appreciate any speed addition I can get. (^=
I haven't touched the source in months, so I'm a little hazy on it.. but, I DO know that it needs to be written. Most of the content is in 1 big java file, and only a few minor things are external. I really need to break it down into pieces.
But, for my first major java project, I think I did ok.. I was just looking through it and thinking "I wrote this??" (^=
Anyhow, your wisdom would be greatly appreciated!
I can make the code available, if you wish... but I forewarn you, it's messy, long, and not commented. (^=