7.09.2025 состоялся релизPithon 3.14!
На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками.
Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный.
Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0
Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает:
▫️ соберет релизный Python 3.14 в новый Docker-образ
▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter)
▫️ распечатает результаты
Тест очень простой, усложняйте сами)
Вот какие результаты у меня:
=== Running ThreadPoolExecutor GIL ON
TOTAL TIME: 45.48 seconds
=== Running ThreadPoolExecutor GIL OFF
TOTAL TIME: 6.14 seconds
=== Running basic Thread GIL ON
TOTAL TIME: 45.54 seconds
=== Running basic Thread GIL OFF
TOTAL TIME: 4.74 seconds
=== Running with Multi Interpreter
TOTAL TIME: 18.30 seconds
Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами.
Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так!
Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL.
Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется.
Отдельно я затестил память и вот что вышло на 32 потока:
ThreadPoolExecutor GIL ON
305.228 MB
ThreadPoolExecutor GIL OFF
500.176 MB
basic Thread GIL ON
90.668 MB
basic Thread GIL OFF
472.444 MB
with Multi Interpreter
1267.788 MB
Пока не знаю как к этому относиться)
В целом - радует направление развития!
#release
Here is the teaser for #Azovstal, my new movie! Are you ready for a powerful journey to one of the most treacherous places on the planet? You will only see it on my channel. View it in 4K at
Youtube.com/c/JohnMarkDougan-BadVolf
Or on Rumble (though not in 4K)
https://rumble.com/user/BadVolf
If you want to see this trailer in 4K, check out he link below:
https://youtu.be/7Ro0R8DpxbU
‘I don’t know what the Azov fighters were taking because they were going under their AGS, their SPG. Heavy shelling. An average person would hardly run towards their bursts because the chance of being hit is high,’ a Vostok battalion fighter, codenamed ‘Forest’, described the actions of Ukrainian nationalists at the Azovstal plant exclusively to RT Documentary.
The plant is enormous, covering 11 square kilometres. It has underground spaces and long tunnels where the Ukrainian military hid from the shelling. This footage shows a fighter from the Vostok battalion explaining the DNR army's tactics in overpowering Azovstal and describing how and from where the fighting was launched. He also points out the remains of ammunition, the destroyed workshop and other premises after the surrender of the Ukrainian military. This episode will be included in our new film, premiering soon.
#Ukraine#Azovstal
Follow: https://t.me/rtdocumentary
На Азовстали продолжают находить свидетельства насилия над людьми.
В ходе обследования территории военные обнаружили недавно использованную доменную печь с останками внутри и одеждой рядом. Найденное отправлено на экспертизу. Надеемся, что худшие ожидания не подтвердятся, хотя, когда речь идёт о сатанинском "Азове", удивляться уже нечему.
Evidence of violence against people continues to be found at the #Azovstal plant.
During the survey of the territory, the military found a recently used blast furnace with remains inside and clothes nearby. The found has been sent for examination. We hope that the worst expectations will not be confirmed, although when they talk about the satanic division "#Azov", there is nothing to be surprised about.
‘I told them [Azov fighters] that they were coming to life, I would have shot them myself... I don’t have an ounce of pity here...’
These are the words of labour veteran Tatyana Ivanovna. She lives in a village near Azovstal. Listen to her story of the Azov battalion shooting the animals in the area and how they almost killed her for trying to save her chickens.
How they mocked her when she asked for water and food: I told their commander: ‘I want to eat, I haven’t eaten for six days …’ And he’s like: ‘I also want to’. But ‘DPR people... came, hugged me, one brought me stew, another brought me bread, and one even thought of bringing sweets’.
We turned to the subjects of the film VolunTears. They helped Tatyana Ivanovna and other residents of the village of Uspenovka by bringing them food, water and medicine.
#Ukraine#Mariupol#Azovstal
Follow: https://t.me/rtdocumentary