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

does having a VM makes for bad performance?

 
Gal Rubinstein
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a java/C++ programmer it is clearly noticed that, in many cases, having a virtual machine gives
code portability but gives bad performance because of the many layers.

is this thr case in Android?

Thank you
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Performance is dependent upon the application, just like it is for any other platform.

Most Android applications will not feel particularly slow because they are written in Java and running on the Dalvik VM. That is because most applications do not spend a lot of time doing work -- they mostly sit around and wait for the user to click something.

Applications that do a lot of work all the time, such as many games, will not perform as well on Android as they will on platforms where you code in C. However, the core Android team has indicated that eventually there will be a "native SDK" to help people build extensions in C to be used for processor-intensive logic. This is complicated, because Android will eventually run on several chipsets.
 
Gal Rubinstein
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say native... it actually means writing C code, right?

or will they make a thing layer? like NIO?

because, as you state, these are different chipset.

Thanks
 
Michael Rivera
Ranch Hand
Posts: 132
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i think Mark is right about the Native SDK
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic