TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

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

Hashtags

Резултати

Пронајдени 4 слични објави

Пребарај: #hassannasrallah

当前筛选 #hassannasrallah清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3365 · 29.09.2024 г., 13:19

Statement by the President of the Syrian Arab Republic, Dr. Bashar al-Assad To the Lebanese National Resistance To the family of the martyr, #HassanNasrallah My message is not to console you on the martyrdom of the Resistance leader, for over the past decades, you have demonstrated such resilience, strength, determination, and solidarity that no tragedy, no matter how great, could weaken you. You come from a school of struggle that knows only perseverance and steadfastness on the path of truth, no matter how high the cost. Noble and pure blood is only spilled in the pursuit of justice and its causes. The Resistance does not weaken with the martyrdom of its leaders; instead, it remains firmly rooted in the hearts and minds of its people. Great leaders, during their lifetimes, build the doctrine of struggle, chart its course, and establish its path. When they depart, they leave behind a legacy of thought and a practical approach to honor and resistance. They build for that inevitable hour of destiny, which does not come by chance but carries a profound message and consequence, as it transitions them from temporary presence among us to eternal immortality in our collective memory and consciousness, becoming an enduring symbol of resistance for generations to come. The Resistance is both an idea and a principle. The martyr, Hassan Nasrallah, is its memory and its history. He will never be regarded merely as a legend but will remain a path that creates a reality centered on the Resistance, with pride as its essence, dignity as its compass, liberation as its goal, and his name—Hassan Nasrallah—as its guiding light across generations. We are confident that the Lebanese National Resistance will continue on the path of struggle and justice against occupation and will remain the steadfast shoulder supporting the Palestinian people in their just cause. The martyr Nasrallah will always be remembered by the Syrian people for his unwavering stance, leading the Lebanese National Resistance alongside Syria in its battle against the tools of Zionism, despite the burdens he carried in his confrontation. This memory of loyalty will enshrine the name of the martyr, Hassan Nasrallah, forever. September 29, 2024 President Bashar al-Assad

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3700 · 23.11.2024 г., 03:04

The missiles deployed in the Israeli enemy airstrikes on Fathallah street in the heart of the capital #Beirut were advanced bunker-buster (seismic) bombs, highly toxic, generating an enormous blast that resonated as far as Sidon and the surrounding mountain regions. Notably, these are the same type of strikes previously employed in attempts to target #Hezbollah Secretary-General Sayyed #HassanNasrallah and Sayyed #HashemSafieddine. سترك يا رب.