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

Резултати

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

Пребарај: #sgbudget2025

当前筛选 #sgbudget2025清除筛选
gov.sg

@Govsg · Post #3041 · 01.07.2025 г., 11:03

📢 Singaporeans can start claiming SG60 Vouchers this month in two phases - starting today for seniors! ⭐ From 1 July 2025: Seniors aged 60 and above can claim $800. ⭐ From 22 July 2025: Those aged 21 to 59 can claim $600. The SG60 Vouchers work just like CDC Vouchers! Claim and spend them by December 2026. Click on the images for a step-by-step guide ⬆️#SGBudget2025 Credit: PA

gov.sg

@Govsg · Post #2774 · 28.02.2025 г., 02:38

From keeping Singapore economy strong and vibrant to expanding access to clean and sustainable energy, here are the key excerpts from Prime Minister and Minister for Finance Lawrence Wong's #SGBudget2025 Statement in Parliament. For more info: www.gov.sg/budget-2025

gov.sg

@Govsg · Post #2739 · 18.02.2025 г., 11:00

#SGBudget2025 This is a Budget for all Singaporeans. Check out what you and your family can look forward to at a glance. 🙌 Infographics: Ministry of Finance

SkillsFutureSG

@skillsfuturesg · Post #730 · 19.02.2025 г., 02:01

#SGBudget2025🎙️ As part of the SkillsFuture Level-Up Programme, the SkillsFuture Mid-Career Training Allowance will provide financial support for Singapore Citizens aged 40 and above pursuing selected full-time or part-time long-form training, for a total of 24 months over an individual’s lifetime. More details will be shared at the Ministry of Education's Committee of Supply. Stay tuned to our social media channels or https://go.gov.sg/skillsfuture-level-up-programme🔍

gov.sg

@Govsg · Post #2758 · 21.02.2025 г., 10:11

🌯💰The Budget Burrito – 21 February 2025 #ICYMI It’s Budget season and there’s something in it for every Singaporean! Here’s your #SGBudget2025 Wrapped. ⬇️ 1) Support for you and your family 🧑‍🧑‍🧒‍🧒💰 Eligible households and families will receive support to tackle cost pressures, ranging from $800 in CDC Vouchers to $500 in Child LifeSG credits, and more. 🔗 Find out more: https://www.instagram.com/p/DGNr-eMykYq/ 2) Empowering workers with skills and support 💼🚀 We are encouraging lifelong learning by enhancing support to workers undergoing part-time training under the SkillsFuture Level-Up Programme, and lower-wage workers under the Workfare Skills Support. 🔗 Find out more: https://www.instagram.com/p/DGNRQO3yR3l/?img_index=1 3) Supporting Singaporeans at every stage of life ❤️🌱 From the new Large Families Scheme to support married couples who wish to have three or more children to the Matched Medisave Scheme for lower-income seniors, we’re making sure every Singaporean feels supported, every step of the way. 🔗 Find out more: https://www.instagram.com/p/DGNUTXwyMpc/?img_index=1 4) Celebrating SG60 🇸🇬✨ It’s Singapore’s 60th birthday and every Singaporean gets a gift! Under the new SG60 package, you can receive $600 SG60 Vouchers (those 60 and above get $800), $100 ActiveSG Credits, $100 SG Culture Pass credits and more. 🔗 Find out more: https://www.instagram.com/p/DGNVUlnydzS/?img_index=1

gov.sg

@Govsg · Post #2785 · 28.02.2025 г., 10:01

📢 The Weekly Wrap – 28 February 2025 1️⃣#DoYouKnow what are the major moves to strengthen Singapore’s economy in #SGBudget2025? From building up our infrastructure like Changi Airport to the potential deployment of nuclear energy, we distill it for you here: 🔗Read on for key excerpts of #SGBudget2025: https://go.gov.sg/budget-excerpt 🔗Watch for #SGBudget2025 roundup: https://go.gov.sg/parl-feb-2 2️⃣ Be vigilant and protect yourselves from scams! In Jan 2025, more than $1.6million was lost to scammers who impersonated as Government Officials. For latest info on scams, visit www.scamshield.gov.sg

gov.sg

@Govsg · Post #2757 · 20.02.2025 г., 05:01

From tackling cost pressures to supporting families, seniors, and workers, to recognising the contributions of all Singaporeans as part of #SG60, here are the key excerpts from Prime Minister and Minister for Finance Lawrence Wong’s #SGBudget2025 Statement in Parliament. For more info: www.gov.sg/budget-2025

NEA Singapore

@NEASingapore · Post #998 · 18.02.2025 г., 09:18

#SGBudget2025 The enhanced Climate Friendly Households Programme will now cover around 90% of households in Singapore! From 15 Apr 2025, eligible HDB households will receive an additional $100 in Climate Vouchers, on top of the existing $300 offered in 2024. The programme will also be expanded to include Singapore Citizen households living in private residential properties. This means that eligible households staying in HDB and private residential properties can claim a total of $400 worth of Climate Vouchers! These vouchers are valid until 31 Dec 2027. More info at go.gov.sg/nea-cos2025-cv #ClimateActionSG#SustainableSG

NEA Singapore

@NEASingapore · Post #1004 · 04.03.2025 г., 09:43

Highlights of our #SGBudget2025 efforts to safeguard, nurture and cherish our environment for SG60 and beyond: 🏠🔌 Expansion of enhanced Climate Friendly Households Programme to tackle climate change ☕🍜️ Upgrade hawker centres and build 5 new hawker centres 👨‍🍳🍳 Rental support for hawkers to recognise the contributions of our hawker stallholders, and in celebration of SG60 and the 5th anniversary of the inscription of Singapore’s Hawker Culture on the UNESCO Representative List of Intangible Cultural Heritage of Humanity 🌦️🌡️ Launch of the Weather Science Research Programme to enhance #SGWeather prediction capabilities 📦🛒 New guidelines to reduce e-commerce packaging 💚✨ Cleaner neighbourhoods with stepped-up efforts in the #YearofPublicHygiene More info at go.gov.sg/nea-cos-2025

gov.sg

@Govsg · Post #2996 · 02.04.2025 г., 03:36

Join us at the Forward SG: Together, for Better roadshows this month and discover how #ForwardSG, including initiatives from #SGBudget2025, supports all Singaporeans. Check out our interactive exhibits and get professional advice on jobs, upskilling, and support for seniors from our friendly ambassadors. And stand to win exciting prizes🎁! Check out https://go.gov.sg/tfbroadshows for more info! Don’t miss out—see you there! 🙌#Togetherforbetter