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

Резултати

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

Пребарај: #gambella

当前筛选 #gambella清除筛选
Addis Standard

@addisstandardeng · Post #21176 · 24.01.2026 г., 10:23

#Ethiopia: Shooting near #Gambella Grand Hotel leaves one dead, injures another; city administration imposes movement restrictions One person was killed and another injured in a shooting near the Gambella Grand Hotel on Thursday afternoon, disrupting daily life in the city and prompting the Gambella City Administration to impose temporary restrictions on movement and public services, according to a senior regional official and a local resident who spoke to Addis Standard. A senior regional official, who requested anonymity for security reasons, said the shooting occurred at around 1:05 p.m. while Tabots—sacred religious icons—were being escorted back to a local church following a religious ceremony. According to the official, most of the procession had already passed the area near the hotel when the incident took place, affecting only a few people at the back of the escort. “The target wasn’t the crowd,” the official said. “It appears the individual who.... Read more: https://addisstandard.com/?p=54727

Addis Standard

@addisstandardeng · Post #22165 · 02.05.2026 г., 12:41

News: Media Authority Board Chair praises new AI-driven integrated system’s role in enforcing accountability, oversight Speaking at the inauguration on 1st of May, Ambassador Redwan Hussein, Director General of the National Intelligence and Security Service (NISS) who is also Chairperson of the EMA Board, described the system as a decisive break from opaque and manual practices. Furthermore, the new platform will introduce full traceability of permits and compliance, he said. “We will know to whom we gave a permit and when it expires. Evidence will be generated upon expiry.” He highlighted its contribution to address cases including “someone who takes a permit to work in #Addis_Abeba will no longer be found working at the edge of #Gambella in the middle of the night, an issue we faced under the old system.” https://addisstandard.com/?p=56731

Addis Standard

@addisstandardeng · Post #21457 · 19.02.2026 г., 16:27

#Gambella Region authorities say measures taken against #security members following recent unrest Authorities in the Gambella Region say legal and administrative actions have been taken against police personnel following recent security crises in the region, including disciplinary measures, retraining programs, and court proceedings targeting alleged misconduct within the force. According to the Gambella Police Commission, regular police and riot control units were sent to the Dalol Central Command Training Center for training as part of broader reforms initiated after the recent security incidents. Police members who did not attend the training underwent physical evaluations and disciplinary review sessions that included internal assessments. Separate court rulings in Gambella city gave verdicts on cases involving civilians and former officers accused of wearing unauthorized police uniforms and concealing government weapons. https://addisstandard.com/?p=55245

Addis Standard

@addisstandardeng · Post #21412 · 16.02.2026 г., 08:20

News: Poor market functionality persists across #Ethiopia despite slight easing of household costs More than half of assessed #markets across Ethiopia showed poor functionality between late December 2025 and early January 2026, underscoring continued supply disruptions despite a slight decline in household expenditure costs, a recent Joint Market Monitoring Initiative factsheet indicates. According to the report, more than half (52%) of assessed markets across Ethiopia were found to have poor functionality, with the highest prevalence reported in #Gambella (100%), #Amhara (74%), #Afar (67%), and #Oromia (63%). The deterioration was largely linked to ongoing conflict, particularly in Gambella, Amhara, and Oromia, which disrupted trade routes and restricted trader movement. Additional pressure came from fuel shortages and rising transportation costs that constrained commodity supply and weakened market integration. Read more: https://addisstandard.com/?p=55200

Addis Standard

@addisstandardeng · Post #21917 · 02.04.2026 г., 14:02

News: #State_Department issues ‘Do Not Travel’ warning for five regions of #Ethiopia amid heightened security risks The U.S. Department of State has issued a Level 4 “Do Not Travel” warning for several regions in Ethiopia, citing escalating security threats including armed conflict, crime, and kidnapping. In its latest travel advisory update released on April 1, the department named #Tigray, #Afar, #Amhara, #Gambella, and #Benishangul Gumuz among areas facing heightened risks, urging U.S. citizens to avoid travel to these regions entirely. The advisory stated that these areas are affected by ongoing armed conflict, political and ethnic violence, and widespread insecurity, with conditions that can deteriorate rapidly without warning. Beyond the Level 4 regions, the State Department maintained Ethiopia under a Level 3 “Reconsider Travel” advisory overall, pointing to broader concerns including unrest, terrorism, landmines, and communication disruptions across Read more: https://addisstandard.com/?p=56258

Addis Standard

@addisstandardeng · Post #21287 · 03.02.2026 г., 07:48

#Ethiopia: MP Abebaw challenges peace talks with splinter armed groups Member of Parliament Dr. Abebaw Desalew of the National Movement of Amhara (#NaMA) has questioned Prime Minister #Abiy Ahmed over the federal government’s approach to peace negotiations and regional security, warning that talks with what he described as “splinter groups” have failed to bring tangible improvements on the ground. Dr. Abebaw raised the concerns during the 10th Regular Session of the 5th Year of the 6th Term of the House of Peoples’ Representatives (#HoPR), where MPs questioned the Prime Minister on the government’s six-month performance report. He said Ethiopia continues to face a pervasive lack of peace, particularly in conflict-affected regions including #Amhara, #Oromia, #Tigray, and #Gambella, while noting that serious human rights violations are also reported in regions without active armed conflict. “Even in areas not experiencing open conflict, members from the... Read more: https://addisstandard.com/?p=54927