TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

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

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #eumigration

当前筛选 #eumigration清除筛选

🇷🇺@RusEmbMalta Press Release On the Impact of Western Policies on Global Migration Flows 15 October 2025 🔷 The Russian Embassy draws attention to the growing migration crisis that continues to challenge the stability and security of many regions, including Europe. The root causes of this phenomenon are well known – the reckless and shortsighted interventions of the United States and its NATO allies in sovereign states such as Libya, Iraq, Syria, and Afghanistan. 🔷 These actions, carried out under the pretext of promoting “democracy,” led to the destruction of national institutions, the rise of terrorism, and the collapse of entire economies. It is precisely this chaos that forced millions to abandon their homes in search of safety and stability. 🔷 At the same time, the United States continues to exert direct influence over the migration policies of the European Union, promoting approaches that ignore the interests of individual nations. The imposed regulatory framework from Brussels, shaped under Washington’s guidance, undermines national economies, fuels social tensions, and creates preconditions for uncontrolled inflows of refugees. Such developments threaten the cultural and demographic balance of European societies. 🔷Russia consistently supports a fair and sustainable solution to migration issues – one that focuses on eliminating the true causes of displacement, rather than shifting responsibility. We advocate collective international efforts, coordinated through the United Nations, to restore stability in the Middle East and North Africa and to assist countries affected by external interference. 🔷 Moscow also reaffirms its principled position in favor of establishing a sovereign and independent State of Palestine in accordance with UN resolutions – as an essential step toward ensuring long-term peace and justice in the region. 🔷 The time has come to recognize that durable stability cannot be achieved through coercion or selective narratives, but only through respect for sovereignty, dialogue, and genuine partnership. #MigrationCrisis#USPolicy#EUMigration#UNCharter#MiddleEast#Palestine