GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Fidget-Spinner/cpython_optimization_notes: Personal notes on optimizations in CPython

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
3.11
3.11
 
 
3.13
3.13
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

CPython Optimization Notes

Introduction

CPython is the reference implementation of the Python programming language.

In this document, I’ll summarise major speedups to the core parts of CPython in the following versions:

  • 3.11

To get the most out of this, you should have knowledge of Python (especially in data model/dunder methods). Being able to read C is also a plus though not strictly necessary. Some knowledge of common data structures (hash tables, linkedlist, etc.) is also beneficial.

If you’re interested in the internals of CPython, and/or want to contribute, I believe this document has some educational value for you. If you find any parts hard to understand due to poor wording or plain inaccuracies, please open a PR!

Dive in by reading the index for 3.11.

Related Reading

I only list resources I’ve read before. I’m in no way affiliated with any of these works (except the devguide 😉):

  • Complete beginner’s guide with visual diagrams: https://realpython.com/cpython-source-code-guide/
  • High-level overview and deep-dive of many objects and parts of CPython: https://github.com/zpoint/CPython-Internals
  • Like the previous guide, but arranged around topics: https://tenthousandmeters.com/
  • CPython devguide: https://devguide.python.org/setup/

About

Personal notes on optimizations in CPython

Topics

ccpythoncpython-internalsinterpreterlearning-materialspython

Resources

Readme
Activity

Stars

7 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.