BlackBerry memory usage -


I'm especially looking for some advice on the use of memory on Blackberry mobile devices. Using some profiling tools, we have calculated the set size by working in 525kb of RAM. What is the problem, is it really not known whether it is acceptable or too much?

Can anyone give any information in their own experience with memory usage on Blackberry?

I am also thinking that what we should look for in order to reduce memory usage.

512KB is entirely acceptable on the current generation of Blackberry devices. You can see the exact JVM stack required for each model, but none of the current devices is under 20 MB pile. Most are much bigger than that.

On the Zabachmark, you can select the device that is interested below a drop on the right side of the page. Then, go to the JVM tab for the device.

When it comes to reducing memory usage then I can not worry about the total bytes used for this application if you are inline with 525K in fact, just how often allocation / Re-allocation is necessary to avoid any unnecessary allocation, try to pool / reuse as much of the items as possible. For example, use the stringbuffer class to add a string instead of the operator, because many string objects will be created for each combination of the operator's use, where stringbuffers only put letters in an array and only extend when needed. Are there. Google is a great way to find more tips.

Finally, depending on the profiling tool, which is Blackberry JDE, a very important part of understanding how you can optimize map memory usage.


Comments