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

Резултати

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

Пребарај: #nidoe

当前筛选 #nidoe清除筛选
NIDO Russia (НИДО)

@nido_russia · Post #1937 · 02.02.2025 г., 10:58

🎊🎉🍾🇳🇬🇷🇺 Our beloved organisation, NIDO Russia has been officially accepted as a full member of NIDO Europe yesterday evening 01.02.2025 by the overwhelming majority of the general house which is the supreme organ. We owe this success to our faithful members, the board of trustees, the chairmen Emeritus and stakeholders. Recall that, a tiny group of people prevented this for many years, saying that we must be part of their cabal for our rights to be respected in Europe. We rejected their ideas and protocols, we refused to be gradually assimilated, we took our destiny in our hands, knowing God was on our side. Their condition for peace was that we stoop low and be under them. We rejected that kind of parasitic peace. This group said it was either their way or the highway. We chose the beautiful highway. You must not be a doctor or lawyer or teacher to be part of NIDO Russia or NIDO Europe. Every Nigerian legally residing in Russia has a right to apply to be part of us. Even those who may not yet be fully legal, it is not our duty to judge or condemn them, but rather to guide them (socioeconomically adapt them) towards legalisation and contributing positively to Russia and their families in Nigeria. It is a huge lesson for us all. "Na who give up, na him lose". Nevertheless, we are open to working together with everyone for our common good including those few people who worked against us. It is a new era. What are the benefits of being part of NIDO Europe? 1. The interests of Nigerians in Russia can be represented on a continental level. 2. The interests of the Russian Federation which are also our interests as residents can be represented on a continental level 3. Better negotiating power with the government on matters important to us as Diasporans. 4. Better synergy of efforts towards national development, bilateral trade, foreign direct investments and human capital development. I, on behalf of the executives congratulate us all for this huge achievement including those members who witnessed it live and direct. Yours in service, Dr. Godwin Ibe https://t.me/nido_russia/1937 #NidoRussia#NidoEurope#NIDO#NidoE#Nigeria#Russia

NIDO Russia (НИДО)

@nido_russia · Post #1847 · 26.10.2024 г., 12:30

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm

NIDO Russia (НИДО)

@nido_russia · Post #1843 · 23.10.2024 г., 17:59

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm

NIDO Russia (НИДО)

@nido_russia · Post #1832 · 19.10.2024 г., 05:01

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm