• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

does having a VM makes for bad performance?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 140
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes i think Mark is right about the Native SDK
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic