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

Резултати

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

Пребарај: #odaily

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

@CryptoM · Post #64935 · 10.04.2026 г., 10:55

🚀 Strategy's Stretch Nears Significant Bitcoin Acquisition Strategy's Stretch (STRC) is reportedly close to acquiring a substantial amount of Bitcoin this week. According to Odaily, the company is estimated to have raised enough funds to purchase 8,000 BTC. By the end of the week, STRC may hold a total of 10,000 BTC. #Strategy#Bitcoin#BTC#Acquisition#STRC#Odaily

Crypto M - Crypto News

@CryptoM · Post #64795 · 10.04.2026 г., 00:15

🚀 Kremlin Announces Easter Truce for April 2026 The Kremlin has announced a ceasefire to take place from April 11, 2026, at 16:00 until the end of April 12, 2026. According to Odaily, this truce is set to coincide with the Easter holiday. Further details about the ceasefire have not been disclosed. #Kremlin#EasterTruce#Ceasefire#April2026#Odaily#EasterHoliday

Crypto M - Crypto News

@CryptoM · Post #64518 · 09.04.2026 г., 05:44

🚀 Middle East Ceasefire Expected to Hold Despite Fragility Jefferies global economist Mohit Kumar has stated that despite the fragility of the Middle East ceasefire agreement, it is expected to hold. According to Odaily, Kumar noted that both parties have reached a point where they desire a ceasefire, as continued conflict would negatively impact both sides. Kumar highlighted that U.S. President Donald Trump is keen on reaching an agreement, as he lacks support from his core base for ongoing warfare. Meanwhile, the Iranian Revolutionary Guard faces challenges due to economic devastation, potentially paving the way for future uprisings. He concluded that given the interests of both parties, the unstable ceasefire is likely to persist. #MiddleEast#Ceasefire#MohitKumar#US#Iran#DonaldTrump#Conflict#RevolutionaryGuard#GlobalEconomics#PeaceAgreement#Odaily

Crypto M - Crypto News

@CryptoM · Post #65217 · 12.04.2026 г., 03:45

🚀 WLFI Co-Founder Addresses Misunderstandings on X Platform WLFI co-founder Zach Witkoff has responded to recent criticisms on the X platform regarding the WLFI project. According to Odaily, Witkoff clarified several points to address misconceptions. Firstly, he emphasized that WLFI should not be confused with the Trump meme coin, as they are entirely unrelated. He also stated that WLFI has no connection with 'fight fight fight' or CIC Digital Company. Witkoff highlighted that early investors purchased WLFI at prices of $0.015 and $0.05, with the current price standing at $0.08. He further explained that the project's primary product is not transaction fees but a stablecoin that generates returns through holding government bonds. This stablecoin ranks as the second-largest compliant stablecoin by trading volume and market capitalization, which he described as a significant achievement. Witkoff advised critics to conduct more thorough research before writing extensive posts on the matter. #WLFI#ZachWitkoff#XPlatform#TrumpMemeCoin#Stablecoin#GovernmentBonds#Investors#Misunderstandings#CICDigitalCompany#Cryptocurrency#Odaily#MarketCapitalization