@mygovcoronanewsdesk · Post #11493 · 01.12.2022 г., 07:54
India's G20 Presidency will work towards benefitting humanity as a whole. As the Hon PM Narendra Modi says, "WE CAN!" #G20India
Hashtags
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
Пребарај: #g20india
@mygovcoronanewsdesk · Post #11493 · 01.12.2022 г., 07:54
India's G20 Presidency will work towards benefitting humanity as a whole. As the Hon PM Narendra Modi says, "WE CAN!" #G20India
Hashtags
@MyGovCoronaNewsdesk · Post #12837 · 13.09.2023 г., 08:44
PM Narendra Modi is taking on the role of a Global Unifier. He's uniting nations for the global good, fostering collaboration on a worldwide scale. #G20#G20India
@MyGovHindi · Post #6850 · 13.09.2023 г., 08:45
दुनिया के नेताओं को एक मंच पर लाने एवं एकजुट करने की सराहनीय भूमिका निभा रहे पीएम नरेन्द्र मोदी वह वैश्विक भलाई के लिए देशों को एकजुट कर, विश्वव्यापी स्तर पर सहयोग को बढ़ावा दे रहे है। #G20#G20India
@mygovcoronanewsdesk · Post #11492 · 01.12.2022 г., 06:28
गौरवमयी पल 🇮🇳 आज से भारत प्रतिष्ठित एवं महत्वपूर्ण #G20 समूह की अध्यक्षता आधिकारिक तौर पर ग्रहण करेगा। आइए 'वसुधैव कुटुम्बकम' के मंत्र के साथ पूरी दुनिया को एक साथ लेकर आगे बढ़ने का संकल्प लें। #G20India https://youtu.be/VuQLi0_34vw
@mygovcoronanewsdesk · Post #11990 · 08.02.2023 г., 15:46
Come, Explore India's Digital Transformation Journey alongside the 1st DEWG Meeting and experience the Progress of Technology & latest innovations. 📍Lucknow 🗓13-15 Feb 🕑 2 PM onwards #G20DEWG#G20India
@mygovcoronanewsdesk · Post #11814 · 19.01.2023 г., 11:22
📣 Announcing! 1st Digital Economy Working Group Meeting taking place in Lucknow from February 13-15, 2023. #G20IndiaDEWG#G20India
Hashtags
@mygovcoronanewsdesk · Post #11494 · 01.12.2022 г., 10:34
India: the mother of democracy moving forward with a united voice and #JanBhagidari #G20India#NewIndia
Hashtags
@mygovcoronanewsdesk · Post #12033 · 12.02.2023 г., 11:57
"G20-DIA bringing Hon'ble PM Narendra Modi's dream to life" Be part of G20 #DigitalInnovationAlliance. Know more & Apply at: meitystartuphub.in/g20-dia/ #G20India#G20DEWG
@mygovcoronanewsdesk · Post #12321 · 13.03.2023 г., 05:19
Are you interested in creating digital innovations for the upliftment of societies? Participate in G20 #DigitalInnovationAlliance Visit: https://mygov.in/task/launch-applications-g20-digital-innovation-alliance/ #G20DIA#G20India
@mygovcoronanewsdesk · Post #11970 · 06.02.2023 г., 08:06
Calling startups in the field of #agritech & other sectors, developing digital solutions that can reduce the digital divide and boost the global economy for G20 #DigitalInnovationAlliance. Know more at https://mygov.in/task/launch-applications-g20-digital-innovation-alliance/ #G20India
@mygovcoronanewsdesk · Post #11991 · 09.02.2023 г., 06:26
The Digital Experience Centre & Digital India Exhibition scheduled alongside the 1st Meeting of #G20DEWG in Lucknow will be a learning opportunity for all #DigitalNagriks. See you there! #G20India
Hashtags