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

Резултати

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

Пребарај: #sinai

当前筛选 #sinai清除筛选
BadVolf

@badvolfnews · Post #1155 · 24.10.2023 г., 08:01

FALSE FLAG INCOMING: As Zionist officials claim #Hamas aka Palestinian Resistance were "carrying instructions on how to make chemical weapons " - @FoxNews interview son of "Hamas founder" Moses Hasan Yousef who was a spy for Zionist intelligence 1997 - 2007 before being given US residency. Yousef even betrayed his own father to Zionists. During Fox interview, Yousef recommends gassing Gaza tunnels to eliminate Hamas. He uses "we" which suggests he is still a traitor to Palestinian people & working with or for Zionists. Shin Bet considered him its most valuable source within the Hamas leadership. The information Yousef supplied exposed numerous Hamas cells, and assisted Israel in hunting down many militants, and incarcerating his own father, Hamas leader Sheikh Hassan Yousef. Yousef told Fox News' Brian Kilmeade that Israel should explore using gas after evacuating civilians in Gaza. "It sounds horrible, but I don’t see any other option. The tunnels are interconnected, and gas could be one of the solutions. But this has to be in the right time.." He recommends civilians are evacuated which means forced to leave their land for 3rd time to #Sinai. He then recommends using gas in tunnels to eliminate Resistance factions. However looking at the ridiculous claim Hamas + chemical weapons. What are the chances that a #WhiteHelmet style event will be orchestrated by Zionists - gassing civilians & blaming Hamas while exterminating more "human animals". Zionists know a ground invasion is suicide so this type of operation is viable alternative. Very high risk imo.

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4026 · 19.02.2025 г., 12:07

Israeli Ambassador to the United States, Yechiel Leiter, issued a threat to Egypt over the Egyptian army’s reinforcements in Sinai, labeling it a "serious threat" to the peace agreement with Tel Aviv. He revealed that the Israeli government will soon address the issue with greater urgency. Leiter accused #Cairo of building military bases "for offensive purposes," pointing to the addition of 700 tanks in the region as evidence of Egypt's growing military presence. He also criticized Egyptian President Abdel Fattah el-Sisi, claiming he is "playing both sides," but suggested that Sisi would be more open to cooperation with Israel if #Hamas in #Gaza is decisively dealt with. #EgyptIsraelTensions#Sinai#IsraelThreatensEgypt#MiddleEast#EgyptianArmy#Israel