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
🤑Gate.io Startup Answer & Earn @walken_io💵
📝Take the quiz about Walken(WLKN) & Split a $3,000 mega prize!🏆
⏰Ends at 9:00AM, Jul 25th (UTC)
*How to participate:
✅ Join GateioOfficialNews and Walken community
✅Follow @Gateio_Startup & RT the 👉POST
🔛 Click 👉HERE to Participate now
Learn More:https://www.gate.io/startup
#Gateio#gateiostartup
📣Startup Voting Campaign #4 - $8,000 up for grabs
Vote for your favorite project by 6:00 AM, Sep 8 (UTC)!
🏆Winning projects will shine in the spotlight!
💎$BYIN$CEC$MAK$ANS
🔄Share to rally support for your pick!
👉Vote:https://gate.io/activities/startupvote?gt_disable_intercept_jump=1&now_period=5
#GateioStartup#Memecoins#Airdrop
📣Day 3 of voting! $8,000 up for grabs—vote for your favorite project by 6:00 AM, Sep 8 (UTC)!
🏆Winning projects will shine in the spotlight!
💎$BYIN$CEC$MAK$ANS
🔁Share to rally support for your pick!
👉Vote:https://gate.io/activities/startupvote?gt_disable_intercept_jump=1&now_period=5
#GateioStartup#Memecoins#Airdrop
🚀$8,000 up for grabs! #Vote for your favorite project by 06:00 AM, Sep 8 (UTC)!
$BYIN$CEC$MAK$ANS
🏆Winning projects get the spotlight
🔁Retweet to support your pick
Vote now:https://gate.io/activities/startupvote?gt_disable_intercept_jump=1&now_period=5
#GateioStartup#Memecoins#Airdrop
📈#Gateiopartner carnival: the main prize of $12,000 is being played out 🔥
The promotion is active until 11:00 Moscow time on February 24
ℹ️How to earn:
1) Registration on Gate + KYC2
2) Go here and click "Join now"
3) We complete the tasks:
🎁BONUS 1 : Registration + KYC, PrizeStartup voucher for 20 shares
🎁BONUS 2 : Make a deposit of $50, prize from $5 to $10
🎁BONUS 3 : Make a trading volume of $200, split the prize pool of $10,000 depending on the share in the total trading volume
🎁BONUS 4 : Invite users and share the prize pool of $2000
🔗Join now and earn: https://gate.io/fr/campaigns/396?ref=VLJMULHBVA
#Gateio#GateioStartup#Crypto
🚀Gate.io Startup Free Offering: Cat Gold Miner (CATGOLD)
🗓Subscription Period:06:00AM January 7 - January 9 (UTC)
💵Airdrop Amount: $50,000 CATGOLD
👉Sign up here
🔗
⏰Trading Starts:10:00,AM January 9 (UTC)
📚Full Details:Click here
🎉Gate.io New Year Red Envelope: Get a $60 bonus by following this link ➜ Red Envelope
⚡️Don’t miss this unique chance to accelerate your earnings with CATGOLD! Places are limited, register now and be among the first to take advantage of this exclusive offer! ⭐️
🔗gate.io
📈
#GateioStartup#Gateio#CATGOLD
💰Trade $HQ on Gate.io & Win Your Share of $4,000!
👀 A new trading event is live on Gate.io, giving you the chance to earn big rewards!
🗓Event Period: February 7 at 06:00 AM UTC - February 12 at 06:00 AM UTC
💰Rewards:
✅$3,000 Trading Bonus – Trade at least $50 in HQ and share a $3,000 prize pool.
✅$950 New User Bonus – New users who sign up and trade $10 in HQ will receive $10 instantly.
✅$50 Lucky Reward – 1 lucky participant from the comments will win $50!
⚠️Important:
✔️ Complete your identity verification before the event ends to qualify.
✔️ Rewards will be distributed in HQ within 14 working days.
✔️ No multiple accounts or fraudulent activity allowed.
🔥Join now and start trading! Don’t miss your chance to win big!
🔗Sign up & start trading here: https://www.gate.io/signup/?ref_type=103
#Gateio#GateioStartup#StartupMining#Launchpool#Launchpad