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

Пребарај: #belyanka

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

@druschbaFm_en · Post #52625 · 28.03.2025 г., 08:05

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 28 March⚡️ 🔴#Sumy Direction: 🔴In #Sudzha Sector, to the west on Ukrainian lands, the battle for #Vladimirovka reportedly continued {still unproven; 1st blue arrow on map}. 🟡 For #Veselovka as well, but confirmed {1st black arrow}. 🟡 In #Zhuravka as well. As for... 🟡#Basovka. 🟡#Novenkoye, is RFAF controlled {1st red arrow}. 🟡 In #Kursk region, the 'Sudza Gas Transmission Point' and the 'Border Checkpoint' came under RFAF control {2nd red arrow}. 🎬 Video 🟡#Gogolevka, reportedly has been taken by Russian troops {4th black arrow}. 🟡#Oleshnya remains AFU controlled. 🟡 In #Guyevo, according to unconfirmed reports, the RFAF control the northern part. Fierce fighting continues. 🟡#Gornal remains under save AFU control. 🔴In #KrasnayaYaruga Sector, the battle for #Popovka and #Demidovka continued, so far without tangible success for the AFU {5th/6th black arrow}. 🟡 At #Grafovka, lull. 🟡 At #Prilesye as well. 🗺 All on Map 1 🔴 In #Kharkov Direction, positional battles and aviation operations in the areas of #Liptsy, ​​Volchansk and strikes at AFU rear supply routes. 🔴#Svatovo Front: 🔴 In #Kupyansk and #Borovaya Sector, ongoing battles without significant changes. 🔴In #Liman Sector, Russian troops have advanced towards #Katerinovka and #Novoye. 🔴In #Seversk Sector, fighting at #Belogorovka (#LPR) and #Verkhnekamenskoye is ongoing. 🔴#ChasovYar Direction: 🔴In #ChasovYar and #Toretsk Sectors, the fighting continued, without major changes. 🔴#Pokrovsk Direction: 🔴 On the right Flank, far to the east, battles are taking place in the area of #​​Panteleymonovka. Further west for #Tarasovka and the territory to its west. 🔴 South of the City, the situation remains dynamic. 🟡 In #Peschanoye, Russian troops advanced reportedly in the western and central village parts {according to the map the AFU lost control of its (black added) boundaries}. 🗺 Map 2 🟡 In #Kotlino, the AFU entered (confirmed), and reportedly seized nearly all of the settlement's boundaries. 🗺 Map 3 🔴 On the left Flank, the area of #Udachnoye is sunk in the fog of war. 🟡 In #Uspenovka, Russian troops are reportedly clearing the village and have advanced southwest of it into... 🟡#Novoaleksandrovka, the fighting for which has begun. Further south... 🟡 On #Preobrazhenka's approaches, the fighting continues, as well as towards #Troitskoye and #Bogdanovka. 🔴#Komar Direction: 🔴In #Konstantinopol Sector, the same named village is in the fog of war. 🟡 In #Razliv, to the southwest, the RFAF have reportedly entered the village. 🔴 In #Komar Sector, Russian assault groups broke reportedly through north of #Dneproenergiya and attack the eastern part of #Vesyoloye. The village is also under assault from the south. 🟡 In #Volnoye Pole, Russian forces lost their positions in the centre, but consolidated in the eastern village part. 🔴#Zaporozhye Direction: 🔴In #Orekhov Section, fighting continues in the​#MalayaTokmachka - #Rabotino area. The main battles are taking place further west: 🟡 In #Shcherbaki, the RFAF have advanced into the village's centre. The AFU counterattacks. 🟡#MalyeShcherbakito the west, is still not completely RFAF controlled. 🟡 In #Stepovoye, further west, fighting continues with varying success. 🟡 In #Lobkovoye as well. 🟡#Pyatikhatki is RFAF controlled. 🔴 In #Kherson Direction, fights in the island zone. 💥#OldRussia: 🔵 In #Belgorod Region, the villages of #Belyanka, #Nechayevka, #Tishanka, #Shakhovka, #Smorodino and #Kukuyevka came under AFU fire. 💥#RestUkraine: 🔵 The RFAF struck objects in #Kiev, #Odessa, #Dnepropetrovsk, #Kharkov, #Khmelnitsky, #Nikolayev, #Cherkassy, and Poltava regions. 🎞 Video Source 🗺 Maps @olegtsarov; @petrenko_iHS 📋 Sources: CC; Tsarov; ⚡️2M; 🇺🇦Fiend;😼Kotenok 🕰As of 28 Mar 2025; 06:37 GMT+3;📃27 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