Subscribe
Sign in
Home
Podcast
Notes
CPython Internals
AI
Computer Architecture
Linux Internals
x86-assembly
Contact Me
Archive
About
CPython Internals
Latest
Top
Discussions
Why This Python Performance Trick Doesn’t Matter Anymore
A deep dive into Python’s name resolution, bytecode, and how CPython 3.11 quietly made a popular optimization irrelevant.
Jun 28
•
Abhinav Upadhyay
24
Python Performance: Why 'if not list' is 2x Faster Than Using len()
Discover why 'if not mylist' is twice as fast as 'len(mylist) == 0' by examining CPython's VM instructions and object memory access patterns.
Mar 12
•
Abhinav Upadhyay
33
2
An Unreachable Hidden XKCD Easter Egg inside CPython
No, I'm not talking about import antigravity
Nov 18, 2024
•
Abhinav Upadhyay
24
The Pythonic Emptiness
Why the Pythonic way of doing emptiness check on sequences is not necessarily ambiguous in most cases
Nov 9, 2024
•
Abhinav Upadhyay
26
CPython's Garbage Collector and its Impact on Application Performance
Learn how the knowledge of CPython internals translate into performance insights for your code
Oct 2, 2024
•
Abhinav Upadhyay
22
The Design & Implementation of the CPython Virtual Machine
A deep dive into CPython's bytecode instruction format and execution engine internals
Aug 31, 2024
•
Abhinav Upadhyay
46
CPython Internals: What Happens Before Bytecode Execution Starts
Learn about runtime initialization, parsing and compilation of the Python code into bytecode leading to execution on the virtual machine
Aug 30, 2024
•
Abhinav Upadhyay
5
Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython
How costly it is to call functions and builtins in your python code? Does inlining help? How have the recent CPython releases improved performance in…
Aug 8, 2024
•
Abhinav Upadhyay
36
2
Looking Under the Hood of Python's Set Data Structure
Learn everything about hash tables, collision handling, and performance optimization
Jun 25, 2024
•
Abhinav Upadhyay
40
CPython Garbage Collection: The Internal Mechanics and Algorithms
A detailed code walkthrough of how CPython implements memory management, including reference counting and garbage collection
Jun 11, 2024
•
Abhinav Upadhyay
40
1
Recording: CPython and ELF Essentials for Building a Basic Remote Profiler
Yesterday, we did the live session on the internals of remote sampling profilers.
Jun 3, 2024
•
Abhinav Upadhyay
18
1:23:08
How Python Compares Floats and Ints: When Equals Isn’t Really Equal
Another Python gotcha and an investigation into its internals to understand why this happens
May 24, 2024
•
Abhinav Upadhyay
32
5
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts