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

Пребарај: #alquds

当前筛选 #alquds清除筛选
Resistance News Network

@palestineresist · Post #93240 · 05.04.2026 г., 19:09

IOF soldiers were documented brutally assaulting a young man near Qalandia camp, north of #AlQuds. Zionist soldiers took turns severely beating the individual during the attack.

Hashtags

RNN Archive

@rnn_archive · Post #446 · 02.07.2023 г., 17:30

Today marks the somber ninth anniversary of the martyrdom of Mohammed Abu Khdeir at the hands of zionist settlers. 16-year-old Mohammed was kidnapped by a horde of settlers in #AlQuds on July 2nd, 2014, one of the early days of Ramadan. As he was preparing his pre-fast meal before the break of dawn, a group of settlers grabbed him and drove away. Mohammed was subsequently tortured, beaten with tools and forced to drink gasoline. The final act of violence perpetrated against him is as sickening as it is infuriating: doused with gasoline, Mohammed was set on fire. The depravity of zionism knows no bounds. Mohammed's case is one of countless crimes perpetrated against our people from the moment that the first settler stepped onto our land. It is a crime emblematic of the essence of zionism itself, in its racism, sadism, and hatred. Glory to our martyrs, and may they all be avenged.

Hashtags

Resistance News Network Backup

@RNN_Backup · Post #64431 · 25.10.2024 г., 09:44

🚨 Footage documents zionist soldiers targeting and shooting children yesterday in the town of Biddu, northwest of #AlQuds. Following the wounding of the child, the IOF abducted him. The barbaric crimes of the occupation carried out against children, women, men, and the elderly are escalating in the occupied West Bank and the #Gaza Strip, accompanied by a deafening silence from the international community and their refusal to hold the occupation accountable for their ongoing crimes.

Hashtags

Resistance News Network Backup

@RNN_Backup · Post #64453 · 25.10.2024 г., 10:01

🚨 13-year-old Iyad Ashraf Da'is from #AlQuds was released today from occupation prisons after 7 month of detention with the marks of zionist torture and medical negligence against the prisoners clear on his body. Iyad suffers from severe scabies due to the deliberate inhumane measures taken by the occupation administration against the prisoners as part of collective revenge against them. He was also sentenced to house arrest and his ankle was fitted with an electronic bracelet and was banned from Al-Quds to Taybeh. Iyad was arrested on March 27 from his home in Shu'fat, occupied #AlQuds. #FreeThemAll

Resistance News Network Backup

@RNN_Backup · Post #62684 · 12.10.2024 г., 21:24

🚨 The IOF and armed settlers conducted a series of aggressions across the West Bank today: Armed settlers attacked farmers in the village of Al-Mughayyir in #Ramallah and prevented them from harvesting olives. (media 1,2) Settlers also cut down olive trees in the village of Yasuf, east of #Salfit (media 3,4). The IOF invaded the town of Beita, south of #Nablus, where confrontations erupted between resistance youth and the zionist forces. (media 5,6,7). The IOF fired live bullets heavily at Palestinian homes at the entrance of Al-Arroub refugee camp, north of #AlKhalil. (media 8,9) The IOF invaded Shufat refugee camp in #AlQuds. (media 10)