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
😌 Нам всем нужно немного позитивного контента и приободриться! В инфографике посчитали, как можно провести освободившиеся часы ⏳ Спойлер: с пользой и удовольствием. Всем, кто любит смотреть и слушать — must see👇
#stayhome и будьте здоровы!
Some good news,
- April 2020 Security patch has been merged into Evo's source.
- PE's Motorola Face Unlock port has also been added and by the looks of it, it will only support arm64 devices. (huge shoutout to @jhenrique09 for doing the unthinkable)
- Several other changes also are included in the latest source update.
Enjoy and #StayHome
With the COVID-19 pandemic and Circuit Breaker period in Singapore, many businesses were affected. Hawkers, like Carmal, took a beating as well. How did he respond to the crisis? Find out more in the latest episode of #StayHome with NEA Podcast series (https://youtu.be/z9VAPfnxRmE) featuring Carmal from Mad Bros SG, as he shares how he keeps his business afloat during this crisis.
It’s hilarious how fast and obediently the “leftists” jump off the old mass media crisis cart and onto the new one without a second thought.
In the last 6 months it’s been Greta! And Climate Emergency! Then they dropped that like a hot potato and jumped straight into the #StayHome Covid-19 pandemic! But quickly forgot about social distancing and the whole virus itself when the anti-white “George Floyd” race riots broke out.
Every time their media mogul masters come up with something slightly more destructive to the west they can play with, the dogs of society quickly lose interest in their old toys.
You may be concerned about your household energy consumption during this #StayHome period, and one way to counter that is making sure all unnecessary power and appliances are turned off!
Pick up more energy-saving habits at bit.ly/SaveElectricitySaveMoney
Have you heard? We are launching our very own podcast series! 🎧
#StayHome🏠 and tune in to learn more about the current COVID-19 situation, and tips and tricks on how to waste less! Here’s the first episode of our podcast series featuring an SG Clean Ambassador: https://youtu.be/br3Mp0Xn64s
🎬https://youtu.be/rh_cHtkIbeY
#StayHome and when you need to buy essential items, don a mask and keep a safe distance. Crowd management measures will also be in place at relatively popular markets that tend to draw crowds - the list of markers is available at www.nea.gov.sg/our-services/hawker-management/announcements
#SGDengueUpdate 119 cases were reported in the week ending 22 May, 25 cases more than in the previous week. As more of us #StayHome, this could mean more blood meals for the day-biting Aedes mosquito. Keep dengue at bay, by regularly practising BLOCK & SAW. https://go.gov.sg/mozzieproof
PM Lee Hsien Loong announced that the Circuit Breaker will be extended for 4 more weeks beyond 4 May, till 1 June. Here are the key messages.
#SGUnited#StayHome#StaySafe