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

Резултати

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

Пребарај: #irantoday

当前筛选 #irantoday清除筛选
Press TV Shows

@PresstvPrograms · Post #5595 · 31.01.2026 г., 11:02

🔺"This is our country, and we will solve our problem" On January 14, 2026, Iranians took to the streets to pay tribute to the martyrs who lost their lives during the recent unrest. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5594 · 31.01.2026 г., 10:03

🔺“There was a coordinated plan in this regard” Abdolmotahar Mohammadkhani states that there were coordinated attacks on bus depots, resulting in damage to eleven metro stations and complete destruction of more than 120 bus stations. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5593 · 31.01.2026 г., 09:03

🔺Cultural heritage and tourism suffered significant damage during the recent foreign-backed riots in Iran. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5592 · 31.01.2026 г., 08:00

🔺“Serious damage was inflicted on public property” Abdolmotahar Mohammadkhani indicates that the unrest during the three nights resulted in significant damage in the capital, severely affecting public property and urban management infrastructure. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5591 · 31.01.2026 г., 07:03

🔺The foreign-backed riots in Iran caused severe destruction across the country, affecting various sectors, including education, emergency services, and retail. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5590 · 30.01.2026 г., 21:32

🔺“These were not ordinary protesters expressing economic grievances” Surveillance cameras in the city reveal that the attackers could set a store ablaze in less than 30 seconds and vandalize banks in just under 1 minute, Abdolmotahar Mohammadkhani says. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5589 · 30.01.2026 г., 20:32

🔺Foreign-backed rioters caused severe damage to Iran’s social, economic, and religious infrastructure, destroying religious sites and facilities. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5588 · 30.01.2026 г., 19:30

🔺“This riot was different” Seyed Misagh Akhtar highlights that the recent riot in Iran was notably different from previous ones due to the organized presence of trained individuals intent on inciting violence and destruction. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5587 · 30.01.2026 г., 18:30

🔺Social media played a significant role in inciting teenagers and young adults to engage in riots and destructive behavior, culminating in deadly confrontations that led to an unprecedented scale of violence and casualties among police and civilians. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5586 · 30.01.2026 г., 17:31

🔺“They failed to achieve their goals” Mostafa Beheshti, a former MEK member, compares the recent riots in Iran to those in the 1980s, emphasizing manufactured victimhood by the MEK, including the killing of their own senior members. Watch in full #IranToday @PresstvPrograms

Hashtags

Press TV Shows

@PresstvPrograms · Post #5585 · 28.01.2026 г., 09:06

🔺According to Mohammadreza Rasekhi, a bus driver from Tehran, a crowd of armed rioters smashed his bus with knives and metal pipes, threatened him, and set it on fire, moving with professional skill even across the roof. Watch in full #IranToday @PresstvPrograms

Hashtags

123•••10•••1415
ПретходнаСтраница 1 од 15Следна