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
#HOOK/USDT analysis :
#HOOK has successfully broken out from the trendline and subsequently retested it, indicating a shift in direction towards the upside.
This suggests that bullish momentum is likely to persist, with potential for testing higher price levels in the near future.
TF : 4h
Entry : $0.2850
Target : $0.3240
SL : $0.2716
#HOOK/USDT analysis :
#HOOK is in a downtrend, trading below the 200 EMA. The price is currently experiencing a pullback and is expected to test the resistance zone before continuing its bearish trend. The price is expected to test the resistance zone while continuing its bearish momentum to test previous lows.
TF : 4H
Entry : $0.4173
Target : $0.3485
SL : $0.4477
#HOOK/USDT analysis :
#HOOK is in a downtrend, expected to keep up its bearish momentum. The price has already broken out of the trendline, triggering the entry. Target the previous swing low as a potential target level.
TF : 15min
Entry : $0.3558
Target : $0.3208
SL : $0.3746
#HOOK/USDT analysis :
#HOOK has broken out of the trendline with impulsive bullish momentum. It is expected to test the previous swing high. Aim for it as a potential target level, as bullish momentum is expected to continue on LTF.
TF : 5min
Entry : $0.3475
Target : $0.3696
SL : $0.3332
#HOOK/USDT analysis -
#HOOK shows a rejection from the resistance zone after establishing a lower low. There is an anticipation of further decline from this point with a potential retest of the previous low. For a short entry, wait for a pullback to the resistance zone.
TF : 2h
Entry : $0.4959
Target : $0.4003
SL : $0.5155
#HOOK/USDT analysis -
#HOOK is currently in a downtrend, hitting new lows and trading below the 200 EMA. The price is currently testing the resistance zone after an impulsive move. It is anticipated that the price will reject from there and continue to test new lows shortly. Enter when the price begins declining from the resistance zone. The previous swing low will be the target level.
TF : 1h
Entry : $0.5767
Target : $0.5316
SL : $0.6036
#HOOK/USDT analysis -
#HOOK is in a downtrend, trading below the 200 EMA. The price is currently going through a pullback and has retraced to previous support levels near the 200 EMA. Currently, the price is encountering resistance near the 200 EMA and has already broken the trendline, indicating an increase in bearish pressure on the price. To confirm entry, wait for the price to break below the $0.5997 level to go short, with previous swing lows as potential target levels.
TF : 30min
Entry : $0.5997
Target : $0.5446
SL : $0.6337