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
Live: Evacuation of hantavirus-hit cruise ship underway
A large-scale evacuation has started for passengers aboard a cruise ship stricken by a #hantavirus outbreak. The affected MV Hondius has anchored near Tenerife in Spain, where local health officials arranged orderly disembarkation. The viral outbreak has caused multiple infections and three fatalities. Asymptomatic travelers are prioritized for medical checks before being sent to the airport to return to their nations. The World Health Organization has released surveillance guidelines, advising all evacuated passengers to undergo prolonged health monitoring to stop further transmission.
via CGTN
Swiss authorities have confirmed a case of #hantavirus identified in a passenger from the MV Hondius cruise ship.
He had responded to an email from the ship’s operator informing the passengers of the health event, and presented himself to a hospital in Zurich, Switzerland, and is receiving care.
In line with the International Health Regulations (IHR), WHO is working with relevant countries to support international contact tracing, to ensure that those potentially exposed are monitored and that any further disease spread is limited.
The type of virus in this outbreak has been confirmed as Andes hantavirus by the National Institute for Communicable Diseases @nicd_sa, South Africa and the Geneva University Hospitals @hug_ge, Switzerland The support of the Institut Pasteur de Dakar @PasteurDakar, Senegal and the Administración Nacional de Laboratorios e Institutos de Salud @ANLIS_Malbran, Argentina has also been critical in responding to this event.
As of 6 May, there are 8 cases, 3 of whom are confirmed as hantavirus by laboratory testing.
WHO will continue to work with countries to ensure that the patients, contacts, passengers and crew have the information and support they need to stay safe and prevent spread.
X LINK
About Hantavirus
(spread mainly by rodents)
Swiss authorities have confirmed a case of #hantavirus identified in a passenger from the MV Hondius cruise ship.
He had responded to an email from the ship’s operator informing the passengers of the health event, and presented himself to a hospital in Zurich, Switzerland, and is receiving care.
In line with the International Health Regulations (IHR), WHO is working with relevant countries to support international contact tracing, to ensure that those potentially exposed are monitored and that any further disease spread is limited.
The type of virus in this outbreak has been confirmed as Andes hantavirus by the National Institute for Communicable Diseases @nicd_sa, South Africa and the Geneva University Hospitals @hug_ge, Switzerland The support of the Institut Pasteur de Dakar @PasteurDakar, Senegal and the Administración Nacional de Laboratorios e Institutos de Salud @ANLIS_Malbran, Argentina has also been critical in responding to this event.
As of 6 May, there are 8 cases, 3 of whom are confirmed as hantavirus by laboratory testing.
WHO will continue to work with countries to ensure that the patients, contacts, passengers and crew have the information and support they need to stay safe and prevent spread.
X LINK
About Hantavirus
(spread mainly by rodents)
Soberanía Sanitaria
🐦@SoberaniaSalud
____
#Hantavirus: el precio de desfinanciar ➡️Investigadorxs del CONICET cuentan en esta nota qué es lo que faltó, en qué se recortó, y cómo debería actuarse en estas situaciones. Siempre, la importancia de un Estado presente. @RAIIS_ARGhttps://t.co/oqkK5bXcf4
____
🔗http://twitter.com/SoberaniaSalud/status/1087361266790871045
🦠🚨HANTAVIRUS OUTBREAK HITS 36 AMERICANS ACROSS 16 STATES
🔹 16 cruise passengers quarantined at Nebraska Medical Center, 2 more at Emory Atlanta 🚢
🔹 Only known human-to-human hantavirus strain - rare Andes virus with 6-week incubation ⚠️
🔹 42-day quarantine as 11 cases confirmed globally, 3 deaths, 150 total exposed 💀
🔹 Monitoring in Texas, Georgia, Arizona, Virginia, California with twice-daily checks 🌡️
CDC says pandemic risk 'extremely low' but one French patient on life support
This Andes strain killed Gene Hackman's wife - could explode nationwide! 😰
#USNews#Hantavirus
@america
🛥️🦠 Trois autres passagers à bord du bateau de croisière MV Hondius ont montré des symptômes du hantavirus, rapporte la chaîne CNN.
Précédemment, la BBC, citant des responsables du ministère sud-africain de la Santé, avait rapporté qu’un passager de 70 ans et son épouse de 69 ans, tous deux de nationalité néerlandaise, figurent parmi les victimes d’une possible flambée de hantavirus à bord du paquebot de croisière MV Hondius, qui assurait la liaison entre l’Argentine et le Cap-Vert.
Photo: New York Post/X
#hantavirus#paquebot#victimes
🛥️🦠 Trois autres passagers à bord du bateau de croisière MV Hondius ont montré des symptômes du hantavirus, rapporte la chaîne CNN.
Selon CNN, le navire transportait 170 passagers et 71 membres d’équipage. Il est désormais amarré dans le port de Praia, la capitale du Cap-Vert. Les passagers et l’équipage n’ont pas l’autorisation de quitter le paquebot, des médecins les examinent à bord.
Précédemment, la BBC, citant des responsables du ministère sud-africain de la Santé, avait rapporté qu’un passager de 70 ans et son épouse de 69 ans, tous deux de nationalité néerlandaise, figurent parmi les victimes d’une possible flambée de hantavirus à bord du paquebot de croisière MV Hondius, qui assurait la liaison entre l’Argentine et le Cap-Vert.
Photo: New York Post/X
#hantavirus#paquebot#victimes