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

Резултати

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

Пребарај: #sgunited

当前筛选 #sgunited清除筛选
REACH

@reachsg · Post #578 · 21.04.2020 г., 16:08

What are the services that will suspend operations from today till the end of Circuit Breaker? #SGUnited

Hashtags

REACH

@reachsg · Post #564 · 18.04.2020 г., 13:25

REACH Live! (Mandarin) Highlights #2 - How can we encourage the seniors to stay home? #SGUnited

Hashtags

REACH

@reachsg · Post #562 · 18.04.2020 г., 04:39

REACH Live! (Mandarin) Highlights #1 - Why should we wear mask whenever we go out? Let's hear from Ms Tin Pei Ling #SGUnited

Hashtags

REACH

@reachsg · Post #473 · 06.04.2020 г., 05:56

Tune into DPM Heng Swee Keat’s Solidarity Budget announcement later at 2PM today, where he will announce additional support for workers, businesses and households, to help tide them through this period. #SGUnited🇸🇬 📺 Catch the ‘live’ broadcast on CNA, on CNA938, and on Mediacorp’s meWATCH interactive service (www.mewatch.sg).

Hashtags

REACH

@reachsg · Post #228 · 12.03.2020 г., 13:42

[Sent by Gov.sg - 12 Mar] COVID-19 situation in S’pore - More imported cases expected as global numbers rise - More travel restrictions may be needed - If there are many cases here, may need to hospitalise only those seriously ill; those with mild symptoms to see GP, rest at home SG is NOT going to DORSCON Red — We have the situation under control Economic impact - Measures to help affected businesses, workers - Govt working on 2nd package of measures Staying #SGUnited 👩‍⚕ Frontline staff working hard 💪 Singaporeans’ support crucial to overcome this Everyone can do their part - Practise good personal hygiene, adopt new social norms 🧼🙌 - Maintain social distancing 👋 Watch: go.gov.sg/pmo12mar

Hashtags

NEA Singapore

@NEASingapore · Post #158 · 12.02.2021 г., 02:00

May you have good health and an OX-spicious new year! P.S. Use serving spoons and don’t double dip when having your reunion meals, let’s keep everyone safe and healthy! #SGUnited

Hashtags

REACH

@reachsg · Post #81 · 13.02.2020 г., 00:14

[Sent by Gov.sg - 13 Feb] 💪🇸🇬Helping those impacted by COVID-19: Contribute to The Courage Fund - To help those impacted by COVID-19 — patients, healthcare workers and those who need extra support www.comchest.sg/thecouragefund Go to the centralised online platform for ground-up efforts - Information on what’s needed - Information on ground-up groups and Govt-led initiatives - Details on platform soon Let’s show support for all in the healthcare and other sectors who have been working tirelessly. Look out for one another. #SGUnited

Hashtags

NEA Singapore

@NEASingapore · Post #46 · 24.04.2020 г., 04:00

Our hawkers are working hard to provide delicious food for all of us. So let’s show them our support by ordering takeaways or deliveries of our fave hawker dishes. Together we can overcome. #SGUnited

Hashtags

URA Singapore

@URASingapore · Post #46 · 29.06.2020 г., 11:11

🏃🏻‍♀️ Heading out to the stadiums? Check Space Out’s (www.spaceout.gov.sg) newly-added crowd level information at SportSG’s stadiums, and sweat it out in a safe environment. We are in Phase 2 but there’s no need to rush out. Keep our guard up and use Space Out for regular updates on crowd level information in malls, supermarkets, markets post offices and stadiums across Singapore. It’s also available in all four languages, and presents less crowded options near you. Crowd-level information on more places will be added in future. 👍🏼 Let’s continue to press on, stay safe, and be #SGUnited to fight this virus together.

Hashtags

MTI Singapore

@MTISingapore · Post #4 · 05.08.2021 г., 06:19

The Safe Management Measures have been tightened from 22 July to 18 August. More information on the SMM measures for F&B and Retail and Lifestyle establishments can be found in the infographics. Let's play our part against COVID-19 #SGUnited Click here for more details: https://go.gov.sg/updated-smm-advisory

Hashtags

MND Singapore

@mndsingapore · Post #172 · 01.05.2021 г., 02:14

It has been more than a year since COVID-19 happened. Many of us have had to adapt to new work situations and overcome the various challenges the pandemic brought with it. Today, we salute all workers, especially the frontliners who have been working extra hard to keep us safe this past year. Happy Labour Day! 💪🇸🇬 #SGUnited#SGTogether

123•••56
ПретходнаСтраница 1 од 6Следна