I’ve read some articles about Android NDK. Most of them claim Native C is faster than Java but they didn’t explain the reasons. Could anybody explain and give sources why is Native C faster?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Java has to be interpreted by a virtual machine while C communicates directly with the system. The thing is, since java has to be interpreted, you could say that it has to pass by a checkpoint when it does something while C has a direct pass. But that virtual machine has some advantages too. For instance, it allows the code to be runable on almost any system. In comparison the C is machine dependant.