Skip to main content

Inplace execution in CLDCHi

3 replies [Last post]
ankitmittal000
Offline
Joined: 2008-05-19
Points: 0

I am working on Inplace execution feature given by SUN in CLDC Hot spot Implementaion. I want to know how much performance can be increased by using inplace execution for the midlet to be run on the device. I have converted the midlet jar file into application image (bun) but not able to know whether I have got any significant improvement or not.
Can anybody tell me that how can inplace execution improve the performance and it will affect which part? Is there any way to know how much performance has been increased like some benchmark midlet for InPlace Execution feature.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25
Points: 0

The main benefit of in-place execution is startup time improvement. Depending on the midlet, startup time can decrease by 50-80%. Additionally you can precompile selected methods of the midlet being converted from Java bytecode to native ARM. This may improve runtime performance. Runtime performance can be checked with any standard benchmark, like GrinderBench, CaffeineMark, JBenchMark. See
http://grinderbench.com/home.php
http://www.benchmarkhq.ru/cm30/
http://www.jbenchmark.com/index.jsp

ankitmittal000
Offline
Joined: 2008-05-19
Points: 0

Thanks for the reply. I tried to enable the inplace execution feature and measured the startup times for many midlets. The problem is that I did not get any improvement in the startup times for the midlet. It is almost same as without inplace execution. I have tried a variety of midlets but got no improvement in any of them.
I have enabled inplace execution by enabling
ENABLE_MONET=true
ENABLE_LIB_IMAGES=true
The .bun file is successfully created in the filesystem when i run the midlet for the first time but still there is no improvement.

Is there something that I am missing to get the improvement?

danila
Offline
Joined: 2006-09-25
Points: 0

Hi!
could you give more details about your platform hardware and OS?
Which midlets did you try?
What are the other flags you set for your build? ENABLE_ISOLATES, any others?

Thanks,
Danila