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

Пребарај: #electricalgrid

当前筛选 #electricalgrid清除筛选
Venezuelanalysis

@venanalysis · Post #1732 · 30.08.2024 г., 12:20

[BREAKING] Venezuela is facing a nationwide blackout, with all 24 states affected since early this morning. Authorities are working to restore power, and buses have been deployed in Caracas as the subway system is down. Story developing. Full report here: https://shorturl.at/omBak #ElectricalGrid

Venezuelanalysis

@venanalysis · Post #2314 · 24.03.2026 г., 20:45

📰 NEWS | Venezuela: Rodríguez Announces Electricity Rationing Ahead of Heatwave, Drought Forecast Venezuela has introduced a 45-day electricity saving plan as authorities anticipate increased demand driven by extreme heat and drought conditions, according to Acting President Delcy Rodríguez. The government also confirmed plans to reform the electricity sector to allow private investment through joint ventures in generation and distribution, aiming to address long-standing infrastructure limitations. Recent outages and limited operational capacity, estimated at 12–14 GW out of 34 GW installed, highlight ongoing challenges in the national grid. Read the full report here 👉🏾https://shorturl.at/2SmsF #ElectricalGrid#Sanctions

Venezuelanalysis

@venanalysis · Post #1761 · 30.09.2024 г., 21:22

VA columnist Jessica Dos Santos describes a recent nationwide blackout in Venezuela and the memories from similar events in 2019. While the country returned to normal faster this time, questions about the state of the electrical infrastructure linger. Read the full column here 👉🏼https://shorturl.at/kFJlK #ElectricalGrid#TalesofResistance

Venezuelanalysis

@venanalysis · Post #1919 · 25.03.2025 г., 23:32

📰 NEWS | Venezuelan Gov’t Scales Down Public Sector Schedule in Electricity Rationing Measure The Venezuelan government has announced a six-week electricity rationing plan for state institutions, citing a climate emergency. Public offices will operate on alternating days with reduced hours (8 am-12:30 pm). Essential services remain unaffected. Western states, including Mérida, Táchira, Barinas, and Zulia, have faced daily blackouts of up to eight hours. Analysts point to drought-related hydroelectric challenges and concerns over the country’s transmission infrastructure. 🔗 Read the report here: https://venezuelanalysis.com/news/venezuelan-govt-scales-down-public-sector-schedule-in-electricity-rationing-measure/ #ElectricalGrid#PublicSector