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

Пребарај: #lesotho

当前筛选 #lesotho清除筛选

🇷🇺🇱🇸 Am 16. Dezember 2025 überreichte I.E. Mafelile Christina Molala, außerordentliche und bevollmächtigte Botschafterin des Königreichs Lesotho in der Russischen Föderation und in der Bundesrepublik Deutschland, dem außerordentlichen und bevollmächtigten Botschafter der Russischen Föderation in der Bundesrepublik Deutschland S.E. Sergej Netschajew in einer feierlichen Zeremonie ihr Beglaubigungsschreiben. 🤝 Die Zeremonie fand im Kuppelsaal der Botschaft der Russischen Föderation in Berlin statt. Dem offiziellen Teil der Veranstaltung folgte ein Gespräch von Mafelile Christina Molala mit Sergej Netschajew, in dem die Seiten die traditionell freundschaftlichen Beziehungen zwischen den Ländern würdigten und die Bedeutung konstruktiver Zusammenarbeit unterstrichen. @RusBotschaft #Russland#Lesotho#Botschafter

🗓On February 1, 1980, the USSR established diplomatic relations with the Kingdom of Lesotho. 🇱🇸 Lesotho is an enclave within South Africa and the coldest country in Africa. With a population of over 2 million, Lesotho is often called the "Kingdom in the Sky”, as its entire territory lies at an altitude of 1,000 meters above sea level or higher. ⛷ Lesotho is home to a high-altitude ski resort located at 3,222 meters above sea level, featuring six ski slopes. The ski season runs from June to September. Snow-covered slopes in Africa — especially when it’s summer in Russia and Europe — are a dream come true for many skiers and snowboarders. ✈️Russian tourists can apply for a visa online, and the closest international airports are in Johannesburg, Durban, and Bloemfontein. 📸📹https://t.me/africa_russia/12801 #Lesotho#SouthAfrica#Africa#History#Travel#Tourism#WinterSports

AI match predictions

@ai_match_prediction · Post #11211 · 29.03.2026 г., 05:05

Africa Cup of Nations - Qualification🌍 2026-03-29 13:00 UTC South Sudan vs. Djibouti Predicted outcome: South Sudan❌ Predicted score: 4:0 Actual: Djibouti 0:1 #SouthSudan#Djibouti 2026-03-29 15:00 UTC Lesotho vs. Seychelles Predicted outcome: Draw❌ Predicted score: 0:0 Actual: Lesotho 2:1 #Lesotho#Seychelles #Football#AfricaCupofNations

AI match predictions

@ai_match_prediction · Post #11186 · 26.03.2026 г., 09:05

Africa Cup of Nations - Qualification🌍 2026-03-26 13:00 UTC Djibouti vs. South Sudan Predicted outcome: South Sudan✅ Predicted score: 1:3 Actual: South Sudan 0:4 #Djibouti#SouthSudan 2026-03-26 14:00 UTC Seychelles vs. Lesotho Predicted outcome: Lesotho❌ Predicted score: 0:2 Actual: Draw 0:0 #Seychelles#Lesotho #Football#AfricaCupofNations

⛷ Yes, you can ski in Southern Africa! ❄️ It's wintertime in South Africa — and that means ski season in the mountains! 🏔Tiffindell Ski Resort is located near the border with the Kingdom of Lesotho, on the slopes of Ben Macdhui (3,001 m) in the Southern Drakensberg. 🎿 The only other ski resort in Sub-Saharan Africa is in Lesotho itself — Africa’s only enclave, a country entirely surrounded by another (in this case, South Africa). There are just three enclavedcountries in the world: 🇱🇸 Lesotho (in South Africa), 🇻🇦 Vatican City and 🇸🇲 San Marino (both in Italy). 📹 Watch the video: https://t.me/c/2139192078/157 Would you try skiing in South Africa or Lesotho? #Sports#Travel#SouthAfrica#Lesotho#Skiing#Winter#Africa