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
#Congratulations
🧡 Nargis Kosimova, Director of the “Ekolog” Public Association, has been awarded the “Mo‘tabar Ayol” badge
In accordance with the Decree of the President of the Republic of Uzbekistan dated February 2, 2018, No. PF-5325, “On measures to fundamentally improve activities in the field of supporting women and strengthening the family institution,” the “Mo‘tabar Ayol” badge was established.
This award is given to women who have shown activity and initiative in public and state life, contributed through their effective work to the stability and prosperity of families, the protection of motherhood and childhood, and have set an exemplary example in raising healthy and well-rounded generations in the spirit of patriotism and loyalty to the ideals of independence, promoting moral and ethical values locally, and broadly spreading national values.
The “Mo‘tabar Ayol” badge is presented by the Women’s Committee of Uzbekistan on the eve of International Women’s Day, March 8.
🌿 The team of the “Ekolog” Public Association sincerely congratulates Nargis Kosimova on receiving this prestigious award!
☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube.
#Congratulations🥳
"Nikhil" for your amazing kabaddi skills and to be the luckiest winner of our coin-toss representative.🥳
Keep going, abhi to leaderboard baki hai😜
.
.
.
Download App👇
https://vision11.in/APK/vision11.apk
Congratulations to the fourteen train driver trainees who have successfully completed their training!
January 24, 2024(EDR); During their one year training period, the trainees have successfully finished their theoretical and practical training. That provided by the Ethiopian-Djibouti Railway Capacity Building program’s fourth round.
Today, they took their Ministry of Transport and Logistics qualification exam, and now one step closer to obtaining their licenses and starting their careers as train drivers.
We are incredibly proud of their hard work and commitment, and we wish them all the best in their future endeavors!
#EthiopiaDjiboutiRailway#EthiopiajiboutiRailwayfamily#CapacityBuilding #TrainDriverTraining#Congratulations
The D-Day on #vision11 is here! 🏆
Here are our top 3 winners for #PKL2022 Leaderboard contest!🎖
#Congratulations to all of you!🎉
Aap bhi ho sakte ho agle winner, abhi #vision11 download karo aur khelo 100+ contests to win big!💯
.
.
.
Download App👇
https://vision11.in/APK/vision11.apk
PAID.
#CONGRATULATIONS🎉🎉
#INVEST AND #EARN
PAYING NOW......
(Via USDT, BYBIT)
INSHA'ALLAH 😍
Please check and reconfirm from your Crypto wallet Balance.
Don't forget to share your feedback as soon you got your profit everyone
#Invest & #Earn
Matbuot va ommaviy axborot vositalari xodimlari kuni muborak boʻlsin!
Hurmatli ommaviy axborot vositalari xodimlari, sizlarni "27-iyun – Matbuot va ommaviy axborot vositalari xodimlari kuni” munosabati bilan tabriklaymiz.
Ushbu quvonchli ayyomda barchangizga sihat-salomatlik, sharafli faoliyatingizda yangi yutuq va omadlar, xonadoningizga tinchlik va fayzu baraka tilaymiz.
Kasb bayramingiz muborak boʻlsin!
Hurmat bilan,
“Yangi Oʻzbekiston” universiteti jamoasi
🔁English
➖➖➖➖➖➖➖➖➖➖➖➖➖➖
#Press#congratulations#Tabrik
⬇️Biz ijtimoiy tarmoqlarda:
Veb-sayt | Telegram | Instagram | Facebook