RE: Java's poor performance
"Kelly Smith" <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
All - Everyone here, should get a copy of this book from O'Reilly. Java Performance Tuning By Jack Shirazi September 2000 ISBN: 0-596-00015-4 Best regards, Kelly Smith -----Original Message----- From: tini-admin-6tN4nzCoH/[email protected] [mailto:tini-admin-6tN4nzCoH/[email protected]]On Behalf Of Fred Sent: Sunday, April 25, 2004 6:25 PM To: tini-6tN4nzCoH/[email protected] Subject: [TINI]Java's poor performance Hi all, I am completing a university project about Java in embedded systems. I have developed a realtime data acquisition system in Java (but I had to do the deterministic scheduling using a native ISR). I am very curious to know why exactly Java takes so long to do even simple things like assigning the values in an array. I know it's only an 8-bit microcontroller and this means that the bytecode translates into more machine instructions than on a PC. But this is the same with C!!! The difference in execution times is huge. The interpreter overhead shouldn't be as much as it seems to be. I would have thought an interpreter simply needs to translate the bytecode into machine code at run-time. Why is Java so slow? Is it because Java interpreters are very inefficient and hence translate the bytecode into many machine instructions? ...or is is because of the garbage collector which keeps interrupting? ...or is it because there are many instances of the interpreter sharing the cpu? Thanks in advance to all you coffee-sipping geeks ;-) Fred Sick of spam? Fadmail (www.fadmail.com) recommends using SpamCop (www.spamcop.net) for reporting spam! _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini