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 8613089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:47:12+00:00 2026-06-12T04:47:12+00:00

I was trying some Python APIs maded for some C++ calls and I see

  • 0

I was trying some Python APIs maded for some C++ calls and I see no decrease in performance. Actually, I think that the equivalent application written only in C++ is a little bit slower/laggish.

In particular, I was trying Pyside and some QT application in C++.

Now I know that GUIs love languages that have a good support for dynamic bindings, but I don’t know too much about Python internals: is there some explanation for the reason why a Pyside application is at least as fast as the C++ equivalent ?

If I offer Python APIs inside my C++ program, what will the costs be? One more indirection?

P.S.

Does python offer some native Windowing framework for cross-platform development?

  • 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-06-12T04:47:13+00:00Added an answer on June 12, 2026 at 4:47 am

    At the risk of being downvoted, I’m going to provide a very crude, somewhat subjective hypothesis.

    QT, while being very general-purpose, doesn’t exactly provide a blazing fast GUI API. Its level of abstraction has quite a cost. We’re talking about a heap allocation per widget, per layout, etc. Just have a look at QListWidget and the fact that QListWidgetItem in itself is a separately allocated, fairly complex object. I once had to profile a developer’s code — the logic was suspected to be slow, but I found that almost the entire 6 seconds it took for the operation was spent creating a QListWidget with thousands of list entries. This was in C++.

    My thoughts on this, without seeing your code and usage of QT, is that the overall overhead of the QT GUI makes the differences between a language like C++ and Python negligible.

    Now what isn’t so debatable is that the productivity of using QT through Python is dramatically greater than using it in C++ where we have to deal with the MOC with preprocessed signals and slots, etc. You might want to focus on that more than the performance differences of using a GUI framework in one language vs another.

    PS Does python offers some native Windowing framework for
    cross-platform development ?

    http://wiki.python.org/moin/GuiProgramming

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

Sidebar

Related Questions

I'm trying to write some Python code that will establish an invisible relay between
I'm trying to test some python code that uses urllib2 and lxml. I've seen
I am trying to use 'py2app' to generate a standalone application from some Python
I'm trying to write some Python code that will traverse each directory in the
I have a Django query and some Python code that I'm trying to optimize
I'm trying to convert some python code to Lua. What is the Lua equivalent
I am trying to test some other Python code repeatedly, using all possible combinations
Recently I was trying some practice programs in python and I came across this
Basically I'm trying to run some code (Python 3.2) if a value on a
I am trying to move some files in python, but they have spaces in

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.