Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fidget-spinner/cpython_optimization_notes
Personal notes on optimizations in CPython
https://github.com/fidget-spinner/cpython_optimization_notes
c cpython cpython-internals interpreter learning-materials python
Last synced: 2 days ago
JSON representation
Personal notes on optimizations in CPython
- Host: GitHub
- URL: https://github.com/fidget-spinner/cpython_optimization_notes
- Owner: Fidget-Spinner
- Created: 2021-10-10T07:02:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T13:54:37.000Z (10 months ago)
- Last Synced: 2024-10-08T18:43:44.857Z (about 1 month ago)
- Topics: c, cpython, cpython-internals, interpreter, learning-materials, python
- Homepage:
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPython Optimization Notes
## Introduction
[CPython](https://docs.python.org/3/glossary.html) 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](./3.11/README.md).
## 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/