Really cool experiment done by Sam Pullara that seems to show Java beating the cr*p out of Obj-C. This is not so farfetched as it may seem (sadly, even Javaheads sometimes get caught up in the 'Java is slow' mentality). This is not directly related to J2ME, but I beleive it to be relevant because Java really does seem to always have the impression of being a "slow" platform. Even I usually feel that way. However, it actually makes complete sense that Java could surpass the speeds of other languages. First, with the JIT, bytecodes are converted into machine code for the host hardware. This means calculation intensive code can run just as fast. Second, because an application doesn't free memory, memory never gets fragmented. This means memory allocations are extremely fast. Third, garbage collection technology has improved substantially and is not the huge burden on the system that it used to be. This is good for all Java and it's good for J2ME. Some handsets, including the Motorola i730, have JIT available. A proper line in the JAD file causes the i730 to JIT code as it's installed for improved performance.
The original article here, with test results. |
You can ping this entry by using http://www.mamlambo.com/mt/mt-tb.cgi/16 .