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

Резултати

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

Пребарај: #nadiya

当前筛选 #nadiya清除筛选
DruschbaFM - English

@druschbaFm_en · Post #52476 · 24.03.2025 г., 08:03

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 24 March⚡️ 🔴#Sumy Direction: 🔴In #Sudzha Sector, west of the embattled #Zhuravka on Ukrainian lands, the RFAF entered the northern outskirts of #Vladimirovka (or came close to; another black arrow on map). 🟡 In #Zhuravka, the battle continues. 🟡 In #Basovka, the RFAF advanced in its southern part. 🟡 At #Novenkoye, the RFAF advanced (1st red arrow). 🟡 In #Kursk region, the situation remained unchanged. #Rubanshchina remains Russian controlled (2nd red arrow), #Gogolevka, #Oleshnya, #Guyevo and #Gornal remain under AFU control for now (4 large blue arrows on map). 🟡 In #Melovoy, the battle continues (small black arrow). 🔴 In #KrasnayaYaruga Sector, the AFU continued to attack and could enter #Demidovka and gain a foothold in the ruined village's southern part. This morning, the battle for it and the adjacent forest plantations continues (red arrow turned to black). 🟡#Grafovka, remains under RFAF control. 🟡#Prilesye as well. 🗺 All on Map 1 📌Given the Events, the 1st AFU's minor interim result at high costs is of no strategic value whatsoever. On the contrary, the overall situation of the AFU has even worsened with the further aforementioned border crossing. 🔴#Kharkov Direction: 🔴In #Liptsy Section, positional battles are taking place. The frontline remained unchanged. 🔴 In #Volchansk Section, the same situation. 🔴#Svatovo Front: 🔴 In #Kupyansk Sector, Russian troops advanced in the eastern and western settlement parts of #Topoli and expanded the bridgehead towards the settlement of #Kamenka from the east. 🟡 In #Dvurechnaya, Russian infantry units advanced within the settlement boundaries. 🔴 In #Borovaya Sector, the AFU retook the settlement of #Nadiya and advanced in its area. 🎬 Video 1 🔴In #Liman Sector, without significant changes. 🔴In #Seversk Sector, as well. 🔴#ChasovYar Direction: 🔴In #ChasovYar Sector, there are reportedly fights in the city's southern 'Shevchenko Microdistrict,' and further south towards #Stupochki village. 🔴In #Toretsk Sector, fighting continues in the northern, central and southern parts of the city. 🔴#Pokrovsk Direction: 🔴 On the right Flank, the RFAF have entered the village of #Vodyanoye2nd west of #Tarasovka. 🗺 Map 2 🎬 Video 2 🔴 South of the City, the heavy fighting continued without any noteworthy results. 🔴 On the left Flank, there are ongoing heavy battles also without any tangible results. 🔴#Komar Direction: 🔴In #Konstantinopol Sector, fighting in and around the village of the same name and throughout the sector is ongoing. 🔴 In #Komar Sector, the battles continued without major changes. 🔴#Zaporozhye Direction: 🔴In the #Orekhov Section, fighting continues in #MalyeShcherbaki, to which Russian troops broke through several days ago and to the west near #Stepovoye. 🔴 In #Kherson Direction, the AFU have still presence in the area of ​​the 'Antonovsky Bridge,' where the RFAF disrupted another AFU rotation. Otherwise Russian artillery and Aerospace Forces are hitting AFU positions and facilities. 💥#OldRussia: 🔵 In #Rostov Region, Russian air defence repelled a massive AFU drone attack on several districts, as well as in #Novoshakhtinsk and on the approach to Rostov at night. In one of the #Voronezh region districts, more than five UAVs were destroyed. In the evening, the RF MoD reported dozens of destroyed drones in the #Crimea, #Belgorod, #Bryansk and #Kursk regions. In #Zaporozhye region, the AFU targeted an ambulance, killing a paramedic. In Pologi district the AFU disrupted the power supply. In the #DPR, 7 civilians were wounded by AFU strikes. ⚠️ This Report contains new info received after the usual 2-Majors morning report. 🎞 Vids Source 1; Source 2; 🗺 Maps @olegtsarov; @creamy_caprice 📋 Sources: CC; Tsarov; ⚡️2M; 🇺🇦Fiend;😼Kotenok 🕰As of 24 Mar 2025; 07:39 GMT+3;📃22 Mar 📱 Join GLOBAL DEPTH to boost your TG Feed 💬Join Military Chat for Comments & Discussions 🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update