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 слични објави

Пребарај: #vandalism

当前筛选 #vandalism清除筛选

🎙 Briefing by Russia's Foreign Ministry Spokeswoman Maria Zakharova (Moscow, November 7, 2025) 🔹Outcomes of Russia’s UNSC Presidency 🔹Kiev regime crimes 🔹Ukraine crisis 🔹Estonia’s introduction of a “fee for energy independence from Russia” 🔹Third advisory opinion of the UN International Court of Justice regarding Palestine 🔹Election of the new UNESCO Director-General during the 43rd session of the UNESCO General Conference 🔹The signing of a peace declaration by Cambodia and Thailand 🔹 2025 BRICS+ Counter-Terrorism Conference 📰Read 📺Watch #UN#UNGA On October 31, the Russian Federation completed its Presidency of the UN Security Council. During this period, the Council held a total of 22 meetings and 11 consultations. A broad range of conflict situations across nearly all regions of the world, as well as other pressing challenges to international peace and security, were considered. Russia’s Presidency reaffirmed our country’s strong authority as a founding member of the UN and a permanent member of its Security Council. The Russian Side made every effort to ensure the Council’s effective and result-oriented work. We will continue to work to ensure that the Council remains an effective tool for coordinating efforts to find collective responses to threats to international peace and security. #KievRegimeCrimes The Kiev neo-Nazi regime continues to attack civilian targets, terrorising the civilians in Russia. Over the past week, more than 70 Russian citizens suffered in artillery and drone strikes — 8 were killed and 63 injured, including 4 children. The brutal practice of deliberately targeting civilians by the Ukrainian neo-Nazis has been reported in all populated areas along the front line. #Estonia#Baltic#Vandalism Moscow is outraged by reports of yet another act of state vandalism in Estonia, this time against the memory of Soviet soldiers buried in the town of Loksa. In a profoundly disrespectful act, the remains of sailors from the destroyer Karl Marx and other Soviet soldiers who died fighting the Nazis between 1941 and 1945 have been exhumed using an excavator. Russia strongly condemns the immoral and criminal campaign being waged in Estonia to desecrate the remains of fallen anti-Nazi fighters. We reiterate that the destruction, damage, or desecration of war graves, even beyond Russia’s borders, is a criminal offence under the Criminal Code of the Russian Federation. #UNESCO On November 6 this year, the UNESCO General Conference, currently being held in Samarkand, elected the Organisation’s new Director-General – the renowned scholar and Egyptologist, former Egyptian Minister of Tourism and Antiquities, Khaled Ahmed El-Enany – for the term from 2025 to 2029. We welcome this decision. We are encouraged by the new Director-General’s pragmatic and constructive approach. #Cambodia#Thailand#ASEAN We welcome the signing of a joint declaration to settle the border conflict by Cambodia and Thailand at the ASEAN Summit in Kuala Lumpur on October 26. We remain confident that the arrangements arrived at with the assistance of Malaysia’s ASEAN Chairship will help overcome existing differences peacefully, establish a close bilateral dialogue, and ensure that the normalised situation will last long and remain durable. We believe many territorial disputes around the world are a legacy of Western colonial policy. Considering the worsening situation in the Asia-Pacific region, it is important to act in the spirit of unity and solidarity which is a hallmark of ASEAN.