UHG
Search
Close this search box.

Python Adds Support to JIT Compiler

Python 3.13 adds a JIT compiler, enhancing performance by converting code to machine code at runtime, boosting the performance by 2-9%. 

Share

Python announced a new update yesterday that added support to the JIT (Just in Time) compiler. This addition, made by CPython core developer Brandt Bucher in the end of 2023, is a substantial change to the CPython Interpreter. 

The inclusion of the JIT compiler in Python 3.13 builds upon the earlier introduction of the Specialising Adaptive Interpreter in Python 3.11, continuing the trend of significant updates to boost Python’s performance. This update is building on the progress made with the adaptive interpreter in Python 3.11

The JIT compiler changes the Python code into machine code when the code is run for the first time, unlike Ahead of Time (AOT) compilers like GCC or Rust’s rustc. This new compiler type copies instructions for each command and fills in the blanks for bytecode arguments. 

The copy-and-patch JIT was chosen for its simplicity and efficiency compared to a full JIT compiler. It avoids the complexity and resource demands of compiling high-level bytecodes into an Intermediate Language (IL) and then into machine code. This approach is particularly beneficial for Python, which runs on various CPU architectures.

The initial benchmarks show a performance improvement of 2-9%. While this might seem modest, it lays the groundwork for more significant optimisations in the future. This update is not just about immediate performance gains but also about setting a foundation for future advancements in Python’s efficiency.

📣 Want to advertise in AIM? Book here

Picture of K L Krithika

K L Krithika

K L Krithika is a tech journalist at AIM. Apart from writing tech news, she enjoys reading sci-fi and pondering the impossible technologies, trying not to confuse it with reality.
Related Posts
19th - 23rd Aug 2024
Generative AI Crash Course for Non-Techies
Upcoming Large format Conference
Sep 25-27, 2024 | 📍 Bangalore, India
Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

Flagship Events

Rising 2024 | DE&I in Tech Summit
April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore
Data Engineering Summit 2024
May 30 and 31, 2024 | 📍 Bangalore, India
MachineCon USA 2024
26 July 2024 | 583 Park Avenue, New York
MachineCon GCC Summit 2024
June 28 2024 | 📍Bangalore, India
Cypher USA 2024
Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA
Cypher India 2024
September 25-27, 2024 | 📍Bangalore, India
discord-icon
AI Forum for India
Our Discord Community for AI Ecosystem, In collaboration with NVIDIA.