What makes Python a slow language ? Last Updated : 22 Jul, 2021 Summarize Suggest changes Share Like Article Like Report Python is a high-level language (than C or C++) thus Python itself manages details of a program like memory allocation, memory deallocation, pointers, etc. This makes writing codes in Python easier for programmers. Python code is first compiled into python Byte Code. The Byte Code interpreter conversion happens internally and most of it is hidden from the developer. Byte code is platform-independent and lower-level programming. Compilation of byte code is to ramp up the execution of source code. The source code compiled to byte code is then executed in Python’s virtual machine one by one, to carry out the operations. The virtual machine is an internal component of Python. Internally Python code is interpreted during run time rather than being compiled to native code hence it is a bit slower. Running of Python script v/s running of C/C++ code: Python: First it is compiled into Byte Code. This Byte Code is then interpreted and executed by the PVM (Python Virtual Machine). C/C++: The source code is compiled into Binary Code which can be directly executed by the CPU making them more efficient. Major Reasons for Python being slow: Being Interpreted: Unlike native languages like C/C++, Python code gets interpreted at runtime instead of being compiled to native code at compile time. Python is an interpreted language, which means that the Python code we write must go through many, many stages of abstraction before it can become executable machine code.Just In Time (JIT) Compiler: Other interpreted languages like Java/.NET byte code run faster than Python's byte code because their standard distribution includes a JIT compiler that compiles byte code into native code at run time. Python does not have a JIT compiler because the dynamic nature of Python makes it difficult to write one. It is impossible to say what type of parameters will be passed to a function, which makes optimization a bit harder.Global Interpreter Lock (GIL): It prevents multi-threading by mandating the interpreter to execute only a single thread within a single process (i.e. an instance of Python interpreter) at a time. Advertise with us Next Article Why Python is a High Level Language I imsushant12 Follow Similar Reads Why Python is a High Level Language Python is categorized as a high-level programming language because of several key characteristics and features that distinguish it from lower-level languages ââsuch as assembly language or machine code. In this article, we will see why Python is a high-level language. What Does High-Level Language M 5 min read Python â The new generation Language INTRODUCTION: Python is a widely-used, high-level programming language known for its simplicity, readability, and versatility. It is often used in scientific computing, data analysis, artificial intelligence, and web development, among other fields. Python's popularity has been growing rapidly in re 6 min read What is Python? Its Uses and Applications Python is a programming language that is interpreted, object-oriented, and considered to be high-level. What is Python? Python is one of the easiest yet most useful programming languages and is widely used in the software industry. People use Python for Competitive Programming, Web Development, and 8 min read What is Python Used For? Python is a highly versatile programming language that's used across many fields and industries due to its readability, simplicity, and the vast availability of libraries.Here are some areas where Python is commonly used:Web Development: Python offers frameworks like Django and Flask, which make it 2 min read Why is Python So Popular? One question always comes into people's minds Why Python is so popular? As we know Python, the high-level, versatile programming language, has witnessed an unprecedented surge in popularity over the years. From web development to data science and artificial intelligence, Python has become the go-to 7 min read Best way to learn python Python is a versatile and beginner-friendly programming language that has become immensely popular for its readability and wide range of applications. Whether you're aiming to start a career in programming or just want to expand your skill set, learning Python is a valuable investment of your time. 11 min read Article Tags : Python Python-Quizzes Practice Tags : python Like