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 слични објави

Пребарај: #wahhabism

当前筛选 #wahhabism清除筛选

Heartbreaking photo of the dead bodies of Hajj disaster victims left in the garbage. (2015 Saudi Arabia) The international media is purifying the #Zionist governments and deceiving the naive people. But history will judge #Wahhabism and #Kemalism. https://t.me/YediotNewsChat

I was searching on Telegram and saw that Wahhabis (#ISIS) are very active on Telegram and have many channels. Many Muslims follow #Wahhabism. The center of this deviant thinking is Takfiri in Saudi Arabia. Arab countries have a small population, but they have a lot of oil resources. They sell black gold (oil) at a low price and buy goods made with oil at a high price. Consumerism; Imitation of the West is common among Muslims. Due to the prevalence of #Zionist media, ignorance and superstitions have spread in Islamic countries. Their governments are kingdoms instead of democracy. Their rulers only leave power when they are dead. Meanwhile, in the Quran, friendship between Muslims and Jews and Christians is forbidden; Arab rulers are friends with non-Muslims and dance with them. But they draw swords against Muslims and kill their brothers. This deviant thinking has its roots in the first century of Hijri. #Abu_Bakr and #Umar also harassed the Prophet's family. In the Holy Quran, Surah Shuri, God said, O group of Muslims, be kind to the family of the Prophet, but the Muslims massacred the entire family of the Prophet. The wild thinking that can be seen in Muslim countries today is the result of the coup by Abu Bakr and Omar against the successor of the Prophet (Ali). Terrorists such as #bin_Salman bin Laden, Saddam and #Erdogan are introduced as the top personalities of the Islamic world. Hypocrites who secretly cooperate with the Zionists but attack the Muslims of Palestine, Iraq, Lebanon, Syria, Iran and Yemen. The governments of #Saudi_Arabia, #Turkey, Bahrain, Kuwait, Qatar, Egypt, Jordan, Pakistan, and Afghanistan by promoting deviant ideas such as the Muslim Brotherhood and Wahhabism; Deobandi fight with countries that want to be independent (Yemen, Palestine, Syria, Iraq and Iran). People walking down the street suddenly explode. Because Sunnis blow themselves up among Muslims to go to heaven!!!! May God curse Israel, US, and their supporters. Because they blackened the face of Islam and presented the Islam desired by the United States. https://t.me/YediotNewsChat