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
This Giving Tuesday, stand with independent journalism!
As Washington intensifies efforts to undermine Venezuela’s Bolivarian Revolution, VA remains a vital voice exposing the truth, countering media propaganda, and uplifting grassroots socialist movements.
🎯 Support us today by donating at http://venezuelanalysis.com/donate to ensure our work continues!
#GivingTuesday#IndependentMedia#Venezuela
The corporate media has gone out of its way to endorse murderous sanctions against the Venezuelan people. Only outlets like Venezuelanalysis can fight back and set the record straight!
Help us out by backing our fundraiser!
Visit: www.venezuelanalysis.com/donate
#Fundraising#IndependentMedia#AntiImperialism#Venezuela
Venezuelanalysis is an independent outlet, free from corporate and political backers. Our mission to report on Venezuelan grassroots struggles is unwavering, but we need your support!
📍Make a one-time donation or subscribe to help us reach our goal here: https://venezuelanalysis.com/donate/
#Venezuelanalysis#IndependentJournalism#IndependentMedia#Fundraising
Oppose Trump’s War, Support Venezuelanalysis!
For over 20 years, we’ve stood with the Venezuelan people in their struggle for sovereignty. We’ve exposed US-backed aggression, documented grassroots resistance, and challenged dishonest media narratives.
Every contribution keeps this work alive. Click here to donate 👉https://venezuelanalysis.com/donate/
#Venezuelanalysis#Fundraising2025#IndependentMedia#Venezuela#SupportIndependentMedia
Fundraising 2025! 💪
We launch our yearly fundraising at a moment that feels more critical than ever. With Trump openly threatening to attack Venezuela and the corporate media beating the war drums, independent media must fight back.
For years, Venezuelanalysis has reported from the ground with accuracy and integrity; from documenting popular power to exposing dishonest narratives around sanctions. Today, our task is clear: counter war propaganda and defend peace and Venezuelan sovereignty.
Our work is 100% supported by readers and followers. That’s what keeps us independent. If you value this project, please consider making a donation or becoming a subscriber. Every contribution strengthens our ability to continue reporting in this historic moment.
Click here to donate 👉https://venezuelanalysis.com/donate/
#Venezuelanalysis#Fundraising2025#IndependentMedia#Venezuela#SupportIndependentMedia
Hong Kong weaponizes tax audits to suppress independent media
Hong Kong authorities are penalizing journalists and media outlets with unjustified tax demands, targeting independent press before audits are finalized.
🔹 Eight media outlets & 20 journalists hit with sudden tax audits.
🔹 Some taxed for nonexistent companies or for periods before their outlets existed.
🔹 HK$700,000 demanded from media, HK$1 million from individuals.
🔹 Critics warn tax laws are now tools for political repression.
#HongKong#PressFreedom#PoliticalRepression#IndependentMedia#TaxHarassment
香港利用稅務審查打壓獨立媒體
香港當局懲罰新聞機構和記者,以不合理稅款鎮壓獨立媒體。
🔹 8家媒體、20名記者* 突遭稅務審查。
🔹 部分遭要求支付不存在公司的稅款,甚至在 *媒體成立前已被審查 。
🔹 要求媒體繳納70萬港元,個別記者須支付100萬港元。
🔹 批評者警告:稅法已成政治打壓工具 。
#香港#新聞自由#政治打壓#獨立媒體#稅務迫害