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
Second US mass shooting in two days kills 4 in Philadelphia
At least four people have been killed and four more wounded in the second mass shooting in as many days in the major northeastern city of Philadelphia amid the epidemic gun violence across the US.
There has been more than 220 mass shooting this year in the US.
#GunViolence
Share and subscribe to American Majority
🚨🔫US GUN VIOLENCE: MASS SHOOTINGS PERSIST DESPITE OVERALL DECLINE
🔹 134 mass shootings through April with 147 killed, 529 wounded nationwide 💀
🔹 Latest incident May 2nd in Amarillo Texas: two dead, ten injured at apartment complex 🏠
🔹 Q1 2026 saw lowest shooting deaths in decade but violence remains daily threat ⚠️
🔹 Mississippi alone reports 116 mass shootings highlighting regional violence patterns 📍
🔹 No single day in Q1 had fewer than 18 shooting deaths across all 50 states 🌍
America's gun crisis continues despite statistical improvements — when will it end? 😔💔
#USNews#GunViolence
@america
Gunman who fired on tourists at Mexican pyramid carried materials related to 1999 Columbine massacre
[Read FullArticle]
@WorldNews#MexicoNews#GunViolence#Columbine
🔫😱 Shocking incident at Jack in the Box in Houston, Texas! 🍔 Former employee opens fire on customer! 🎥 Video shows the terrifying moment it all went down. 😮 Ramos asked for curly fries, but Ford refused. 😡 Verbal argument ensued, captured in 23-minute surveillance footage. 📹 Tensions escalated as Ford grabbed a gun and threw ketchup packets. 🍅 Ramos retaliated, prompting Ford to shoot multiple times. 😨 Thankfully, no one was injured. Ford convicted of assault, probation ended in June. 😤 Stay alert, folks! Danger can lurk anywhere! 🚫💥#Houston#JackintheBox#GunViolence
https://www.foxnews.com/us/video-shows-moment-jack-box-employee-opened-fire-drive-thru-customer-family
Subscribe to @BadVolfNews
💔🚨DEADLIEST US SHOOTING IN 2 YEARS: 8 CHILDREN KILLED IN LOUISIANA TRAGEDY
🔹 Shamar Elkins executed 8 children ages 3-11 in Shreveport — 7 his own kids plus 1 cousin in domestic dispute rampage 😢⚰️
🔹 Children tried escaping through windows, one found dead on roof, another survived jump with injuries — pure horror 🏠💔
🔹 10 total shot including 2 mothers hospitalized, shooter killed by police after carjacking and high-speed chase 🚓💥
America's gun violence epidemic claims more innocent lives. When will enough be enough for our children's safety? 🇺🇸😡🙏
#LouisianaShooting#GunViolence#ChildrenFirst
@america
📉🇺🇸GUN DEATHS DROP 7% IN 2024 — MAJOR IMPROVEMENT FROM 2023
🔹 Total firearm fatalities decreased to 44,447 in 2024, saving 2,281 lives compared to 2023 📊
🔹 Gun homicides reduced 16-27% from 2021 peaks to 15,364 nationwide — 33 states still above 2019 baseline 💀
🔹 Gun suicides reached record high of 27,593 (57% of total) — up nearly 300 from previous year 😔
🔹 Mississippi leads nation at 29.4 deaths per 100k, Massachusetts lowest at 3.7 per 100k 📍
🔹 Police shootings reached 1,210 in 2024 with 95% by firearm — delinquencies remain above pre-pandemic 🚔
First positive trend we've seen in years 🙏✊
#gunviolence#crime#safety#America
@america
🔫🇺🇸GUN VIOLENCE EXPLODES: 65 MASS SHOOTINGS IN JUST 9 DAYS
🔹 Austin deadly shooting: 3 killed, 15 injured on West Sixth Street March 1st 💀
🔹 2,333 homicides already recorded in first quarter of 2026 alone 📊
🔹 130 children (ages 0-11) killed in gun violence this year so far 👶💔
🔹 600 teenagers (12-17) lost their lives to firearms nationwide 🎓😢
🔹 Oakland bar shooting: 2 dead, 5 bystanders wounded in random crossfire 🍸
Cincinnati music venue, Virginia Beach confrontations add to growing toll... 🎵⚰️
California leads with 26 mass shootings since records began — crisis deepens! 📈🏴☠️
#GunViolence#MassShooting#PublicSafety#Austin
@america