Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

android performance

 
luri ron
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What android's performance like? For a mobile device, a slower response to a click won't fly. the blackberry storm from verizon's response is not fast enough. not sure if anyone recognize it
 
Ed Burnette
Author
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Android performance can be very good or very bad depending on what you're trying to do.

Very bad: doing lots of calculations in a loop, especially if it involves floating point or memory management
Very good: taking advantage of all the built-in libraries, for example 2d and 3d graphics and networking

See this page for some tips: http://d.android.com/guide/practices/design/performance.html
 
luri ron
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks. the page is very useful.
 
Robert Green
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ed Burnette wrote:Android performance can be very good or very bad depending on what you're trying to do.

Very bad: doing lots of calculations in a loop, especially if it involves floating point or memory management
Very good: taking advantage of all the built-in libraries, for example 2d and 3d graphics and networking

See this page for some tips: http://d.android.com/guide/practices/design/performance.html


I've had to do a ton of performance testing to tweak out the algorithms and drawing code for all of my games. I follow all the rules that google listed for optimizing your code but often times, you have to really start stripping things out to figure out what's slow. That's why I put together a great little Android project that allows you to plug in snippets of code to see how many FPS you can get with them. I use it when optimizing my games. This is a must-have for Android game developers, and also is a good jump-off point for a first game.

The code is here - http://www.rbgrn.net/content/286-how-to-test-android-performance-using-fps

Enjoy!
 
Amir Alagic
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Android perforamnce is ok but compared to C/C++ sometimes it is slower 4-20 times depending on what is your program doing... Problem is that it is Dalvik is not using JIT but interpreter... Hopefully Google will release JIT soon and performance will be much better.

One tool I really like to see where in my apps I can improve performance is traceview. Great tool that can show you which methods are slow... http://d.android.com/guide/developing/tools/traceview.html you can read more. Also I recommend you to use Ubuntu and dowload soruce code... so that if needed you can use native code for processor intensiveoperations... PMD is also good and can be used with Android...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic