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
📝Auch im Asowschen Meer📝
leidet die Schifffahrt
Eine Folge des Anwachstums ukrainischer Anschläge auf die russische Exportinfrastruktur hat die Schifffahrt im Asowschen Meer erreicht. Dort kommen Frachtschiffe unter Beschuss durch ukrainische Drohnen.
🔻Was ist passiert?
➡️Gestern kam Taganrog unter Beschuss, einschließlich des Hafens, wo ein Trockenfrachter beschädigt wurde. ➡️Heute gab es einen weiteren Anschlag. Ein Trockenfrachter vom Typ Wolga-Ostsee, der Weizen transportierte, sank, und die Besatzung erreichte die Region Cherson.
🖍Die AFU greift gezielt die Haupteinnahmequelle des russischen Haushalts an - Exporte.
🚩Anschläge beschädigen Infrastruktur, die repariert werden muss, und Operationen müssen eingestellt werden.
🏳️Jeder Anschlag auf Schiffe beraubt Russland seltener Handelssschiffe. Frachtkosten werden steigen.
❗️Der Feind wird nicht aufhören, bis ausreichende Gegenmaßnahmen umgesetzt werden.
Der Ausweg ist, sogenannte ukrainische Schiffe auf dem Meer anzugreifen. Die Schifffahrt in der Region Odesa floriert trotz allem.
#Krim#Kerch#Russland#Ukraine
✈️RU | ✈️EN | ✉️MAX
✉️VK | ✉️RuTube | ✉️
#Victory81
🌟 On April 11, 1944, during the Crimean offensive operation, Soviet forces liberated #Kerch from Nazi occupiers.
Kerch was among the first cities to endure assaults from Hitler’s army at the beginning of the Great Patriotic War. It found itself repeatedly on the front line, with the battlefront cutting through its very streets. Moreover, the city fell under enemy occupation twice.
Initially captured in November 1941, Kerch was liberated barely a month later in December, following the Kerch–Feodosia amphibious landing operation.
In the spring of 1942, the enemy amassed significant forces on the Kerch Peninsula and launched a renewed offensive. Despite the valiant resistance by the defenders, the city once again came under fascist control, remaining occupied for 320 days.
During that period, approximately 15,000 civilians lost their lives, and over 14,000 individuals were forcibly deported to Germany for slave labour.
🕯#NoStatuteOfLimitations: The Bagerovo Ditch near Kerch gained tragic notoriety – a site of mass executions. Towards the end of 1941, around 7,000 people were executed and tortured there, including 245 schoolchildren. The Germans surreptitiously removed the children from the city and poisoned them with potassium cyanide.
The Nazi occupiers obliterated every factory, burned bridges and vessels, destroyed parks, and decimated the city’s infrastructure. Kerch was almost completely erased from the map.
One of the war’s most heroic episodes was the defence of the Adzhimushkay quarry. Thousands of civilians – elderly people, women, and children – sought refuge within the underground passages. The enemy attempted to exterminate them by sealing the entrances and using explosives and toxic substances. Nearly all the defenders perished, yet they continued to resist to the very end, rendering the quarry a symbol of unyielding courage and resilience.
⚔️ On the night of November 1, 1943, the Kerch-Eltigen amphibious landing operation commenced. Soviet forces established a bridgehead north of the city, marking a crucial phase in liberating the Kerch Strait and the entire Crimea. In the spring of 1944, this success was solidified during the Crimean offensive operation, culminating in the expulsion of the occupiers from the peninsula.
One of Kerch’s principal symbols became the Obelisk of Glory on Mount Mithridat, unveiled on August 8, 1944 – the first monument in the USSR dedicated to the Great Patriotic War.
🎖 For the defence and liberation of the city, 153 individuals were awarded the title of Hero of the Soviet Union, and 21 military units and formations received the honorary designation “Kerch.”
On September 14, 1973, Kerch was awarded the title #HeroCity.
#Victory81
🌟 On April 11, 1944, during the Crimean offensive operation, Soviet forces liberated #Kerch from Nazi occupiers.
Kerch was among the first cities to endure assaults from Hitler’s army at the beginning of the Great Patriotic War. It found itself repeatedly on the front line, with the battlefront cutting through its very streets. Moreover, the city fell under enemy occupation twice.
Initially captured in November 1941, Kerch was liberated barely a month later in December, following the Kerch–Feodosia amphibious landing operation.
In the spring of 1942, the enemy amassed significant forces on the Kerch Peninsula and launched a renewed offensive. Despite the valiant resistance by the defenders, the city once again came under fascist control, remaining occupied for 320 days.
During that period, approximately 15,000 civilians lost their lives, and over 14,000 individuals were forcibly deported to Germany for slave labour.
🕯#NoStatuteOfLimitations: The Bagerovo Ditch near Kerch gained tragic notoriety – a site of mass executions. Towards the end of 1941, around 7,000 people were executed and tortured there, including 245 schoolchildren. The Germans surreptitiously removed the children from the city and poisoned them with potassium cyanide.
The Nazi occupiers obliterated every factory, burned bridges and vessels, destroyed parks, and decimated the city’s infrastructure. Kerch was almost completely erased from the map.
One of the war’s most heroic episodes was the defence of the Adzhimushkay quarry. Thousands of civilians – elderly people, women, and children – sought refuge within the underground passages. The enemy attempted to exterminate them by sealing the entrances and using explosives and toxic substances. Nearly all the defenders perished, yet they continued to resist to the very end, rendering the quarry a symbol of unyielding courage and resilience.
⚔️ On the night of November 1, 1943, the Kerch-Eltigen amphibious landing operation commenced. Soviet forces established a bridgehead north of the city, marking a crucial phase in liberating the Kerch Strait and the entire Crimea. In the spring of 1944, this success was solidified during the Crimean offensive operation, culminating in the expulsion of the occupiers from the peninsula.
One of Kerch’s principal symbols became the Obelisk of Glory on Mount Mithridat, unveiled on August 8, 1944 – the first monument in the USSR dedicated to the Great Patriotic War.
🎖 For the defence and liberation of the city, 153 individuals were awarded the title of Hero of the Soviet Union, and 21 military units and formations received the honorary designation “Kerch.”
On September 14, 1973, Kerch was awarded the title #HeroCity.