Click to See Complete Forum and Search --> : Is there a way to speed up Java?


Ben Briggs
03-27-2001, 12:15 PM
On my POS box, it took me 4 min 12 sec to compile a "Hello World" program into bytecode, and 43 sec to execute it! Is there a way to speed this up? If not, I'm going to have to forget about Java until I upgrade my RAM (somewhere are 6 months or so).

[ 27 March 2001: Message edited by: Ben Briggs ]

Sweede
03-27-2001, 01:07 PM
write C/C++ code instead ?

:)

Marcel2008
03-27-2001, 03:40 PM
You could write more efficient code, change swing components into awt or get a decent pc.
The new jdk 1.4 should be much faster. (not out yet)

Dru Lee Parsec
03-27-2001, 06:30 PM
NO, DO NOT USE AWT!

The use of swing vs. awt does not dramatically change the speed of the software. And the awt classes look like crap anyway.

The POS machine has a LOT to do with it. :) Compile times like that are really unreasonable for a simple Hello World app. I've run Java a LOT on a Pentium 200 and it's not unreasonably slow at all. Of course on my 1 Gig Athlon it screams.

Also, the main delay with Java is the initial startup of the JVM. Usually, once you get past that it's pretty darn fast. I mean, a little over a year ago nanode and I were doing real time translation of streaming data with Java. No problem.

Ben Briggs
03-27-2001, 11:49 PM
Thanks for the replies.

I'm going to have to skip Java til late then. I'll just stick with learning C.

My problem is probably these specs of my box :D:

Pentium 100
8MB RAM (40MB Swap)

Oh well... within the next few months I'm planning on getting another 32MB of RAM (Max for this model of Dell Lattude). I'll most likely give Java another (more fair) chance.

nanode
03-28-2001, 01:08 AM
a p100 is marginally worthy of a file server or perhaps a firewall. I don't think you'd find many people willing to use that with any programming language.

You can honestly spend $100 and make that p100 a K6III/400 w/ 128MB RAM. Goto the hardware trading forum and check it out.

BTW: I paid $50.00 and added 128MB to my k6III. WOW. Everything from compiling, to CD ripping is observably faster.

Ben Briggs
03-28-2001, 01:14 AM
nanode: Cheeze-o-man! I'm going to have to scoot over to the Hardware Trading Forum! I'm going to go see what $150 (my savings) will get me!

Carnel
03-28-2001, 04:01 AM
Originally posted by nanode:
a p100 is marginally worthy of a file server or perhaps a firewall. I don't think you'd find many people willing to use that with any programming language.
...

I'd disagree with that. I'm using a P133, and I'm using it for programming, and as a Work Station. I have no problems with X or anything like that. Sure, I'd love a completely system update, but the problem lies in the money to afford it. Now a 386, or 486 SX, those would be good for firewalls, as they have minimal space on them anyways.

nanode
03-28-2001, 10:51 AM
Carnel,

I didn't mean say you couldn't use an old pentium to program. Over 2 years ago I upgraded a box from a p166 to a k6III/400 and added 64MB RAM for $200.00. At the time I didn't have tons of $$$, but I felt I got a good value. So, fast forward to today. I'm sure you could get something less obsolete for a little money. ~300mhz is a whole lot faster than 133mhz. If you could get a CPU/mobo upgrade for $50.00 do you still think that's unworthy of doing?