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

Резултати

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

Пребарај: #srilanka

当前筛选 #srilanka清除筛选
Ultimora.net - POLITICS

@UltimoraPOlitics · Post #39017 · 10.05.2022 г., 07:41

#SriLanka Il presidente dell'assemblea nazionale Imaduwa Pradeshiya è morto durante le proteste per un infarto, dopo che dei manifestanti hanno dato alle fiamme la sua abitazione. Nello stesso giorno, è stato appiccato un incendio anche nella casa dell'ex primo ministro. @UltimoraPolitics

Hashtags

ASIANOMICS

@asianomics · Post #5867 · 06.04.2026 г., 15:52

🇱🇰Sri Lanka Raises Cooking Gas Prices 23% Sri Lanka raised liquefied petroleum gas prices on April 6, citing higher global prices driven by the Iran war. State-owned Litro Gas, the main domestic LPG supplier, increased the price of a 12.5kg refill from 3,990 rupees to 4,765 rupees, a rise of 19.42 per cent. A private supplier holding roughly a quarter of the domestic market raised its retail price by 23 per cent to 5,700 rupees. A Litro spokesperson attributed the revision to higher global LPG prices and increased shipping costs, and confirmed supplies sufficient for the entire month of April. The April increase follows an eight per cent hike in March, when Sri Lanka also raised fuel and electricity prices by more than a third. Sri Lanka's government has previously stated that a prolonged conflict in the Middle East could undermine the country's recovery from its 2022 economic crisis, noting that the Strait of Hormuz has been effectively closed since the conflict began. #SriLanka @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5844 · 04.04.2026 г., 12:00

🇱🇰Sri Lanka Battles Energy Crisis, Economic Strain Sri Lanka's government has rationed fuel, raised fuel prices by a third, and increased electricity costs by up to 40 per cent since the Middle East war began disrupting global energy supplies. The measures compound the economic damage from Cyclone Ditwah, which killed 641 people and caused an estimated US$4.1 billion in damage late in 2025. President Anura Kumara Dissanayake's administration is also managing review conditions tied to a US$2.9 billion IMF bailout loan, with a US$700 million instalment pending. Sri Lankan authorities have indicated they may request modifications to the loan's austerity conditions given the deteriorating external environment. The Frontline Socialist Party, which led the 2022 protests that removed former president Gotabaya Rajapaksa, has warned that the current administration may face a similar political implosion. Human rights lawyer Bhavani Fonseka noted that emergency laws, introduced after Cyclone Ditwah, give authorities broad powers to arrest and detain, which could limit public protest activity. #SriLanka @asianomics

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1086 · 06.09.2024 г., 12:14

🗺Sri Lanka 🇱🇰 The Red Mosque (Jami Ul-Alfar Masjid) in Sri Lanka is a towering structure in the heart of Colombo's commercial district, Pettah. Each brick of the building is painted red and white, featuring Indo-Saracenic architecture with pomegranate-shaped domes. Today, it is the largest mosque in Sri Lanka, accommodating up to 10,000 worshippers. #SriLanka @voyage

Hashtags

BAZUKA

@jbazuka · Post #185 · 13.07.2022 г., 17:29

🇱🇰#SriLankaОбразуются длинные очереди для посещения резиденции президента, занятой в течение трех дней демонстрантами ⚠️☝️ 💬Даже в условиях революции и госпереворота люди культурно стоят в очереди, уважая друг друга!

Hashtags

BAZUKA

@jbazuka · Post #151 · 10.07.2022 г., 14:53

🇱🇰#SriLankaПротестующие на Шри-Ланке нашли миллионы рупий в захваченной резиденции президента страны ⚠️☝️ 💬Все деньги передали в службу безопасности для восстановления страны.

Hashtags

BAZUKA

@jbazuka · Post #148 · 10.07.2022 г., 14:52

🇱🇰#SriLankaПротестующие Шри-Ланки обживаются в президентском особняке ⚠️☝️ 💬Второй день они купаются в президентском бассейне и занимаются в его фитнес-центре, а так же устраивают пир в его столовой! 💬 Сам президент успел сбежать до штурма дворца. Он покинул Шри-Ланку на частном самолёте.

Hashtags

BAZUKA

@jbazuka · Post #147 · 10.07.2022 г., 06:19

🇱🇰#SriLankaПротестующий народ Шри-Ланки ворвался в резиденцию президента ⚠️☝️ 💬 Президент Шри-Ланки успел сбежать до того, как туда прорвались бунтующие граждане. 💬 Страна уже несколько месяцев живет совершенно без топлива, испытывает проблемы с электроэнергией и продовольствием.

Hashtags

BAZUKA

@jbazuka · Post #145 · 10.07.2022 г., 06:07

🇱🇰#SriLankaПротестующий народ Шри-Ланки ворвался в резиденцию президента ⚠️☝️ 💬 Президент Шри-Ланки успел сбежать до того, как туда прорвались бунтующие граждане. 💬 Страна уже несколько месяцев живет совершенно без топлива, испытывает проблемы с электроэнергией и продовольствием.

Hashtags

RTDocumentary

@rtdocumentary · Post #734 · 11.05.2022 г., 12:08

Protests continue in Sri Lanka, despite the imposition of a state of emergency. People are demanding the resignation of President Gotabaya Rajapaksa. Anti-Russian sanctions have exacerbated the economic crisis, and prices in the country have skyrocketed. The cost of basic foodstuffs has more than doubled. Locals queue up for paraffin. They need fuel to cook food. The ‘hottest’ point of the protests is near the secretariat of the head of state. A tent camp was set up there. People have travelled from all over the country. Among the protesters is Mahindi Siri, a 40-year-old Special Forces soldier. He lost a leg after being blown up by a landmine while fighting in the north. The war ended 13 years ago. He never imagined he would have to count every rupee to survive. This footage was shot by an RT Documentary team in Sri Lanka, making a new film about how the country is coping with the economic crisis. It’s premiering soon. #video#SriLanka Follow: https://t.me/rtdocumentary

12
ПретходнаСтраница 1 од 2Следна