Meta Actively Pushes Python Project to Adopt PEP 703 Proposal to Make Global Interpreter Lock Optional

Meta is working to push the Python project to adopt the PEP 703 proposal to improve the multithreading performance of Python code. PEP 703 refers to Making the Global Interpreter Lock Optional in CPython, making the global interpreter lock optional in CPython.

The proposal proposes to add a build configuration ( --disable-gil) to CPython that will allow it to run Python code without the global interpreter lock, and make the necessary changes to keep the interpreter thread-safe.

According to the description of the proposal, CPython's global interpreter lock (GIL) prevents simultaneous multi-threaded execution of code, which has become a major obstacle to improving the efficiency of Python code on multi-core CPUs.

The father of Python recently mentioned in the community that it would be great if Meta or other tech companies could get some engineers with mature CPython internal experience to help the core development team with this work.

Meta Instagram team engineer Carl Meyer (also a CPython core developer) made a promise after seeing it , saying that if the PEP 703 proposal is accepted, they will invest three engineer-years (three engineer-years) before 2025 to cooperate with the core team To implement PEP 703.

Finally, let's break in, Meta's latest product Threads uses CPython as the backend. Details: The number of Threads registrations has exceeded 30 million, and the backend is based on CPython's deep "magic modification" .

further reading

Guess you like

Origin www.oschina.net/news/248777/meta-python-pep-703