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

Резултати

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

Пребарај: #nationalday

当前筛选 #nationalday清除筛选
Embassy of Russia in Singapore

@rusembsg · Post #3154 · 12.06.2024 г., 02:08

On June 11, 2024, Russian Embassy in Singapore hosted a state reception dedicated to the #NationalDay of the Russian Federation – Russia’s Day. Minister of State for Culture, Community and Youth, Minister of State for Trade and Industry, H.E. Mr. Alvin Tan attended the function as the Chief Guest. Among the guests were Members of the Parliament of Singapore, eminent representatives of business and social, scientific and cultural community, mass media along with Ambassadors and Military Attaches of foreign states and Russian compatriots. In his welcoming speech, Ambassador stressed that Russia remembers and appreciates that Singapore and other ASEAN countries were among the first to recognize the new Russia. He stated that thanks to this step, we have the opportunity today to look together into the face of the emerging new, fair, multipolar world. Ambassador continues mentioning that “even though large distances separate us, even though the natural and geographical conditions in which we have to live vary, even though we have different views with Singapore on the parameters of regional architecture and the genesis of the events in Ukraine, there is something very significant that connects us and is the subject of our common daily concerns”. “This connecting link is the mutual concern about the threats created by the arms race and the prospect of its spreading into outer space! This connecting link remains the common resistance to the dangers created by terrorism, transnational crime and the money laundering schemes that feed them! We rightfully consider our devotion to the ideals of building a drug-free world to be this connecting link! We consider our common efforts to guarantee international information security to be this connecting link, which would securely block the destructive use of the information environment! And finally, closer to the venue of our meeting today, we see such a link in cooperation for building an open and inclusive, free, predictable region based on the inviolable principles of ASEAN centrality”, he noted. “We invite you to take a closer look at the concept of the Greater Eurasian Partnership that we are promoting and to join the triptowards a new, common and indivisible formula for security in Asia and the Pacific as an alternative to conflicting Indo-Pacific concepts of the collective West. I am convinced that our cooperation has a bright future. It should contribute to the creation of a new world community free from the remnants of colonialism”, concluded the Ambassador.

Hashtags

聖小熊的秘密基地 🇹🇼

@holybeartw · Post #1213 · 10.10.2025 г., 10:18

🇹🇼 祝大家國慶連假快樂!🇹🇼 中華民國屹立於台灣之島,雖身處天災頻發與地緣緊張的前線,一路以來戰戰兢兢、克服一切困難。 我們或許時有歧見與爭論,然而「團結」始終是這片土地上最堅韌而無畏的力量。願我們在相互理解與信任之中,持續邁向更具包容與希望的社會。 中華民國台灣萬歲! #NationalDay#ROC#Taiwan