PDA

View Full Version : Dru: image parsing


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. (^=

Dru Lee Parsec
04-04-2002, 06:52 PM
Hey Duck.

You're a good buddy and I'd love to help you out. Here's the issue. I'm the lead developer on a major project here at the bank. We're interfacing our software with a new set of server software and it's a MONSTEROUSLY HUGE project (I think out estimates are up to aroune 6000 man hours so far).

I've got the VP of development, marketing, and product manager of the server company coming out on Tuesday for 3 days. I'm going to be holed up in a cave with these guys for 3 days trying to mind meld and learn everything they know about their server.

So what I'm saying is that from now until next weekend I am just swamped with work.

However, you have my home email (firstname@lastname.com or druleeparsec@users.sourceforge.net) If you could send me the source and a written explaination of essentially what it does and the basic steps of how it works I could probably write up a suggestion of how to break it up into individual classes.

I could probably even build you an ant build file and a basic class structure.

The problem is, I can't commit to saying " I can give you 3 (or 5 or 10 or any) hours this week for sure".

But I certainly don't mind helping you out. That's no problem at all.