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

Резултати

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

Пребарај: #economicchallenges

当前筛选 #economicchallenges清除筛选
Crypto M - Crypto News

@CryptoM · Post #64574 · 09.04.2026 г., 08:47

🚀 Turkey's Finance Minister: Inflation Outlook Worsens Turkey's Finance Minister has indicated that the country's inflation outlook has deteriorated to some extent. According to Jin10, this statement highlights growing concerns over economic stability in Turkey. The minister's remarks come amid ongoing challenges in managing inflationary pressures, which have been a persistent issue for the Turkish economy. The government is likely to face increased scrutiny as it seeks to implement measures to address these economic challenges. #Turkey#FinanceMinister#Inflation#Economy#EconomicStability#InflationPressure#EconomicChallenges

Crypto M - Crypto News

@CryptoM · Post #65302 · 12.04.2026 г., 16:31

🚀 Global Economic Unity Faces Challenges Amid Iran Conflict and Energy Crisis For decades, global economic crises have prompted the world to band together. Bloomberg posted on X, highlighting that today, as central bankers and heads of state contemplate the potential fallout from the Iran war and the biggest energy crunch in half a century, it looks increasingly unlikely there’ll be another spurt of unified action. The complexities of the current geopolitical landscape, coupled with the unprecedented energy challenges, are testing the limits of international cooperation. As nations grapple with these issues, the prospect of coordinated global economic strategies appears dimmer than in previous crises. #GlobalEconomy#IranConflict#EnergyCrisis#Geopolitics#InternationalCooperation#EconomicChallenges#CentralBanking#GlobalCrisis

Crypto M - Crypto News

@CryptoM · Post #64547 · 09.04.2026 г., 07:17

🚀 World Bank Projects India's Current Account Deficit to Rise by 2027 The World Bank has projected that India's current account deficit will increase to 1.8% of its GDP by the fiscal year 2027. According to Jin10, this anticipated rise is attributed to the growing energy import bills that India is expected to face. The World Bank's forecast highlights the potential economic challenges India may encounter due to its reliance on energy imports, which could impact its overall economic stability in the coming years. #WorldBank#India#CurrentAccountDeficit#EnergyImports#EconomicChallenges#GDP#FiscalYear2027#EconomicStability

Crypto M - Crypto News

@CryptoM · Post #64586 · 09.04.2026 г., 09:18

🚀 Europe Faces Economic Challenges Amid Ceasefire in Iran Europe continues to grapple with the threat of low growth and rising inflation, despite the recent ceasefire in Iran, according to the European Union’s top economy official. Bloomberg posted on X, highlighting concerns over the region's economic stability. The official emphasized that while geopolitical tensions have eased, the economic outlook remains uncertain. The EU is closely monitoring the situation, as persistent inflation and sluggish growth could impact the broader European economy. Policymakers are urged to remain vigilant and responsive to these ongoing challenges. #Europe#EconomicChallenges#Inflation#Growth#Ceasefire#Iran#EuropeanUnion#GeopoliticalTensions#EconomicStability#Policymakers#EU

Crypto M - Crypto News

@CryptoM · Post #64889 · 10.04.2026 г., 07:11

🚀 Japan Urged to Reevaluate Spending on Social Programs Japan is being advised to reassess its financial commitments to programs supporting women, environmental initiatives, and foreign nationals. Bloomberg posted on X, highlighting a summary of responses from a recent government survey. The survey suggests that these areas may require a strategic review to ensure effective allocation of resources. The call for reevaluation comes amid broader discussions on optimizing government spending to address pressing national priorities. The survey's findings could influence future policy decisions as Japan navigates its economic and social challenges. #Japan#SocialPrograms#GovernmentSpending#Women#Environment#ForeignNationals#PolicyReview#EconomicChallenges#SocialPolicy