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
‘❌’ always marks the spot. Can you decipher the next location of our roving exhibition for the Recreation Master Plan? 💎
Give this post a 👍 if you've figured it out!
Still in the dark? Then stay tuned for more updates 😉
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation
Westies, check out these up-and-coming spaces that will make it easier to rest and relax! 😋
As part of the Recreation Master Plan, we are exploring ways to bring recreation closer to your doorstep and to develop a connected network of parks, natural green spaces, and waterways.
Visit our first two roving exhibitions to explore future plans for the West:
1️⃣ 14 – 19 Apr: Westgate
2️⃣ 21 – 28 Apr: Senja-Cashew Community Centre
👉go.gov.sg/ConnectedtoPlayTG
Photo credit: Housing Development Board [1], National Parks Board [2], Land Transport Authority [3] and JTC Corporation [4]
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation
When it comes to living well, it’s essential to have places for play and recreation in our city. 🏋️♂️🚣♀️🎬
Planning these spaces to support active and fulfilling lives has always been a key aspect of our plans. Check out such upcoming spots in the West, with more coming your way in the Recreation Master Plan!
Visit our first roving exhibition to share your feedback on proposals and recreation plans for the West.
Find us at:
Westgate from 14 – 19 April and Senja-Cashew Community Centre from 21 – 28 April
👉go.gov.sg/ExploreWestTG
#DMP2025#SpaceForOurDreams#Recreation#RecreaMP
Westies, do you recognise these places? 😉 Here’s the perfect recreation spot for each of your favourite activities! 🙌
Planning ahead for the long-term has allowed us to weave play and leisure into our city fabric. With the Recreation Master Plan, we’re creating more recreational opportunities by tapping on our green, blue, and everyday spaces.
Want to know what’s in store? Visit our first roving exhibition for a sneak peek into future plans for the west, from 14 – 19 April.
👉go.gov.sg/BestinWestTG
React with a ❤️ if you’re excited to check out the exhibition!
#DMP2025#SpaceForOurDreams#Recreation#RecreaMP
If you could shape the future of the North, with all its potential, what would it look like? 🤔
Bring your best ideas to the roving exhibition for the Recreation Master Plan and help co-create exciting recreational offerings to be enjoyed and experienced by Singaporeans from all walks of life.
Event deets 👇
📌Canberra Plaza
🗓️6 – 14 July
Find out more here
👉go.gov.sg/NorthRecrePlansTG
#ExploreSingapore#RecreaMP#DMP2025#Recreation#SpaceForOurDreams
From a wealth of greenery to inland waterways, the North-East region is home to many active lifestyle amenities and hidden gems for recreation💎
Visit our Recreation Master Plan exhibition and share your best ideas on how we can enhance these spaces for more recreational opportunities!
📍One Punggol
📆 22 - 30 June
You can also submit them via the FormSG link here
👉go.gov.sg/NorthEastRecrePlansTG
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
Got a big appetite for fun? Check out the multitude of recreational opportunities we’re creating through the Recreation Master Plan! 👆
Swing by to see and share ideas for these exciting recreation plans!
📍 VivoCity
📆 25 May – 2 June 2024
📍 Kallang Wave Mall
📆 8 – 16 June 2024
See ya there 👋 Find out more at: go.gov.sg/CentralRecrePlansTG
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
So, what’s on the menu in the Central Region? Well, we have quite a spread 😋
Here’s a sample of the recreation plans bringing you more leisure opportunities in this part of Singapore 🙌 Learn all about the new marine park at the Southern Islands and other exciting developments in Kallang, Southern Ridges and more at our roving exhibitions for the Recreation Master Plan!
Visit the exhibition at:
📍 VivoCity
📆 21 May – 2 June 2024
Kallang Wave Mall
8 – 16 Jun 2024
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
Where to next? ✈️ To the East side we go! 😁
Have ideas to create more recreational opportunities around our island? Help us put together an itinerary of leisure options that we can all enjoy in the future through the Recreation Master Plan 👉go.gov.sg/EastRecrePlansTG
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
Catch flights, not feelings - and step into the future with us ✈️
Swipe ➡️ to some of the future recreational developments in the East that’ll bring you even more leisure opportunities.
Be sure to catch our Recreation Master Plan exhibition at:
📍 Bedok Town Square
📆 11 – 19 May 2024
👉 Find out more at:
go.gov.sg/RecreTripTG
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
Would you like to see more outdoor gyms? 🏋️ Well, one Westie certainly does 🙌
At our recent Recreation Master Plan roving exhibition, we caught up with some of you 👀 who shared about the new recreational spaces you’re most looking forward to.
These exhibitions will be roving to a location near you from now till July. Visit us and share your recreational ideas for your ‘hood!
The next stop will be at Bedok Town Square from 11 - 19 May!
👉 Find out more on the Recreation Master Plan here:
go.gov.sg/EverydayVoicesTG
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore
Did you manage to catch our last Recreation Master Plan exhibition in the West? 🧐
If not, come join us at our upcoming one in the East!
React to this post with a 👍 if you’ve figured out just where it’s being held 😄
Still in the dark? Then stay tuned for more information soon 😉
#DMP2025#SpaceForOurDreams#RecreaMP#Recreation#ExploreSingapore