Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7441627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:02:47+00:00 2026-05-29T11:02:47+00:00

I plan on using Necessitas to port Qt code to the Android platform. On

  • 0

I plan on using Necessitas to port Qt code to the Android platform. On a first sight I noticed despite being native code, everything still passes through the Dalvik VM.

My question is does this introduce overhead? Java is less efficient than native c++ to begin with and Dalvik is rather immature compared to vanilla Java, which is the cause of my concerns.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:02:47+00:00Added an answer on May 29, 2026 at 11:02 am

    In the Android documentation you can find the following tip:

    Native code isn’t necessarily more efficient than Java. For one thing,
    there’s a cost associated with the Java-native transition, and the JIT
    can’t optimize across these boundaries. If you’re allocating native
    resources (memory on the native heap, file descriptors, or whatever),
    it can be significantly more difficult to arrange timely collection of
    these resources. You also need to compile your code for each
    architecture you wish to run on (rather than rely on it having a JIT).
    You may even have to compile multiple versions for what you consider
    the same architecture: native code compiled for the ARM processor in
    the G1 can’t take full advantage of the ARM in the Nexus One, and code
    compiled for the ARM in the Nexus One won’t run on the ARM in the G1.

    Of coarse, Dalvik code is slower than pure C/C++ optimized for the platform. But communication between native code and Java code happens through JNI which is the main source of the overhead.

    So the answer for your question is yes, JNI introduces additional overhead. But if you want to port existing C/C++ code, ndk is the best choice in your case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do not plan on using Weld, but still would like to have custom
here is some code that I plan on using in a registration form for
I am on a FRC (FIRST Robotics Competition) team, and we plan on using
I plan on using Google App Engine to communicate with an Android App. I
I plan on using JSONP to call an external web service to get around
Do you plan on using Factor ? Have you looked at it? Checked it
I plan to build a database management system using Grails as the main framework.
I plan to configure weblogic's gzip servlet filter (using weblogicx-gzip.jar) to gzip my web
I'm using Perl/Tk to build the GUI for an application. I plan on adding
As I plan to switch my career to a 100% web services development company(using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.