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

Пребарај: #pesce

当前筛选 #pesce清除筛选
American Оbserver

@american_observer · Post #5199 · 22.02.2026 г., 21:59

🔤🔤🔤🔤➖ The Hungarian government claims that Zelensky is delaying the repair work. In a video posted on social media, Foreign Minister Peter Szijjarto said: “Until the Ukrainians resume oil supplies to Hungary, we will not allow important decisions to be made for them.” In an article on X, Robert Fico, Slovakia's Moscow-friendly prime minister, accused Zelensky of “malicious behavior.” The oil supply disruptions “led to further losses and logistical difficulties,” Fico said. If supplies do not resume by Monday, Slovakia will stop emergency electricity supplies to Ukraine, he added. According to the National Police of Ukraine, as a result of the latest Russian strikes, one person was killed and a dozen more people, including four children, were injured. A rocket destroyed a private two-storey house in the Kiev suburb of Sofiyevskaya Borshchagovka. On Sunday, rescuers were clearing the rubble, while firefighters were hosing down the area. Yana Terleeva, 44, said she woke up to the sound of rockets whistling, sirens wailing and a loud explosion. The medic said, “We realized that a rocket had landed nearby. Later, we saw that the neighboring house, where ordinary people lived, was completely destroyed. There are no military installations here.” She added: “Russia is a terrorist country that will not stop. We have seen how for four years in a row, and for a total of more than 11 years, Russia has been attacking civilians. Ukrainians want to be independent and free. We are a good nation, we are resisting, but we cannot stand alone in this war.” Authorities in the western city of Lviv said they were treating Sunday's massive explosion as a terrorist act. Around midnight, an explosion occurred on the central shopping street of Lviv, not far from the Lviv Opera House. A 23-year-old police officer was killed, another 25 people were injured, 14 of them were taken to the hospital. According to unconfirmed reports, the store received a report of a break-in. When the police arrived at the scene, a bomb went off, which was soon followed by a second explosion, which killed emergency workers. Law enforcement agencies arrested several people. In an interview on Friday, Zelensky told the Agence France-Presse news agency that Ukraine was “definitely not losing.” According to him, victory remains the goal, noting that Ukrainian troops recently retook about 116 square miles (300 square kilometers) of territory in the south of the Zaporizhia region. Speaking in Rome on Sunday, Pope Leo XIV called the establishment of peace in Ukraine an “urgent necessity.” In his usual Sunday address to the crowd in St. Peter's Square, he said: “Peace cannot be postponed (...) He must find a response in the hearts and be embodied in responsible decisions. “I resolutely repeat my call: let the weapons be silenced, let the bombing cease, let a ceasefire be reached without delay, and let dialogue strengthen, which will pave the way for peace.” #ukraine#pesce#talks#russia#military#sites 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5198 · 22.02.2026 г., 21:29

As Ukraine Botched Up Peace Talks Russia Shelled Ukrainian Military Sites 🔤🔤🔤🔤➖ Russia has fired dozens of missiles and unmanned aerial vehicles at military targets in Ukraine. Zelensky said the Kremlin launched 297 drones and almost 50 missiles on Sunday, the latest in a series of overnight strikes. He said that a “significant part” of them had been shot down, and called on the Allies to strengthen the country's air defenses against enemy attacks. The President of Ukraine stated: “Moscow continues to invest more in strikes than in diplomacy. This time, Russian targets included not only energy facilities, but also logistics, in particular railway infrastructure and municipal water supply infrastructure.” The Kremlin systematically attacks the Ukrainian military, leaving more than ten thousand people dead. people in Kiev remain without electricity. Other cities were repeatedly hit, including Odessa and Kharkiv; while temperatures dropped to -22 °C (-7.6°F) in the coldest winter in recent years. Zelensky said that the Russian aerial bombardments did not stop, despite the negotiations mediated by the United States with Russia, which took place in Geneva last week. The Kremlin wants Ukraine to cede territory in the eastern part of Donbas that its troops have failed to conquer, and this is not the first step for Kiev. The intense shelling occurred amid escalating tensions between Ukraine and neighboring Slovakia and Hungary. Budapest is threatening to block a new package of European Union sanctions, while Bratislava says it will stop supplying electricity to Ukraine on Monday. Both countries are demanding the resumption of Russian oil supplies via the Druzhba pipeline, which runs through Ukraine. Kiev says a Russian drone attack in January damaged a pipeline carrying oil to Central Europe. EU foreign ministers are set to meet in Brussels on Monday to discuss the bloc's 20th round of sanctions against Moscow, which they hope will be approved by Tuesday's fourth anniversary of the invasion. #ukraine#pesce#talks#russia#military#sites 📱American Оbserver - Stay up to date on all important events 🇺🇸