Enhance no GIL / free threaded support
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia dalla documentazione sul free-threading di Python e dai metodi esistenti contrassegnati con nogil. Verifica se Cython può contrassegnare il modulo come free-threaded e se il binding richiede effettivamente il GIL. Il lavoro è completato quando il modulo supporta in sicurezza le build free-threaded e sono stati aggiornati i test e la documentazione pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
CPython now has free-threaded builds since 3.13: https://docs.python.org/3/howto/free-threading-python.html
In https://github.com/openzim/python-libzim/pull/237 (to be released as 3.8.0), we've fixed tests and documentation regarding the fact that python-libzim requires the GIL ATM.
We need to investigate if we really need the GIL, because multiple methods are already marked as nogil, especially important ones around the creation of the ZIM (where we do expect the python-libzim user to handle thread-safety when required).
Aim would be to mark the module as free-threaded. I don't know yet how to do this with Cython (if possible at all).
- Lingua principale
- Python
- Stelle
- 109
- Fork
- 29
- Merge medio
- 9g 1h
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openzim/python-libzim
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
openzim/python-libzim#268 · 4 commenti · 1 reazione ·
-
Release 3.14.0 Apertatask
openzim/python-libzim#267 · 1 assegnatario ·
-
Code review: writer-path use-after-free, sys.modules corruption, GIL held across all reader I/O Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
openzim/python-libzim#266 ·
-
Build for ABI3 Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
openzim/python-libzim#264 · 1 commento ·
-
enhancement upstream
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
openzim/python-libzim#241 ·
Tutte le issue di openzim/python-libzim
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·