Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python performance
#2
It's pretty much a fact that Python is slower than other languages, especially ones like C++ which have a low abstraction level. Python has stuff like dynamic variable naming, automatic garbage collection etc, which just abstracts it even further from the base computer.

And then there's the fact that Python is interpreted while C++ is compiled. Compiled programs are high level programs converted to low level code. Due to this, it executes much faster.

It's a common technique to re-write certain parts of large Python programs with C++ when speed and performance is critical. You could try this approach.

If you want to learn more about Abstraction, what it is, how it effects performance etc, you can read all about it in this article.
Reply


Messages In This Thread
Python performance - by Jacques - Jun-17-2020, 09:59 AM
RE: Python performance - by Knight18 - Jun-17-2020, 04:39 PM
RE: Python performance - by snippsat - Jun-17-2020, 09:17 PM
RE: Python performance - by GaryNR - Jun-22-2020, 07:12 PM
RE: Python performance - by GaryNR - Jun-23-2020, 01:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What about Python 3.11 performance boost wavic 2 1,139 Nov-01-2022, 10:45 AM
Last Post: wavic
  why so much differnt performance in python 2.7.10, 2.7.14 and 3.6.4 jiangtianyong 0 2,602 Feb-09-2018, 06:29 AM
Last Post: jiangtianyong

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020