this post was submitted on 21 Nov 2023
20 points (100.0% liked)

Python

6413 readers
4 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 1 year ago* (last edited 1 year ago)

Since it's running mypyc (https://mypyc.readthedocs.io/en/latest/index.html ) on the imports under the hood, I'm struggling to see why you'd want to limit yourself to the standard library instead of just compiling your whole program as a module with mypyc directly?

At the same time, if the gains are consistent, I also feel that CPython should just compile an entire standard library on installation.

EDIT: benchmarks for mypyc look impressive, only exceptions are slower: