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

Резултати

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

Пребарај: #talesofresistance

当前筛选 #talesofresistance清除筛选
Venezuelanalysis

@venanalysis · Post #1518 · 31.03.2024 г., 20:00

Discover Venezuela's scientific progress amidst sanctions. In her latest VA article, Jessica Dos Santos explores how researchers overcome obstacles to lead Latin America in medical advancements. Read more 👇https://venezuelanalysis.com/columns/innovation-in-times-of-blockade #talesofresistance

Venezuelanalysis

@venanalysis · Post #2296 · 09.03.2026 г., 14:39

🖊🗞COLUMN | A New Venezuela? "These two months have felt like five years. At some point we’ll be able to calmly take stock of how the pieces have fallen and think about the next steps." VA columnist Jessica Dos Santos walks readers through a flurry of major developments Venezuela has gone through since the Jan. 3 US attacks, including meetings with US officials, shifts in foreign policy language and recent domestic political decisions. Meanwhile, familiar problems persist: people are still waiting for the currency to stabilize and for incomes to rise, but that has yet to happen. Read the full VA column here 👉https://venezuelanalysis.com/columns/a-new-venezuela/ #TalesofResistance#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2127 · 07.10.2025 г., 23:56

🖊 COLUMN | Richard Nixon’s Venezuelan Lesson With the US once again issuing military threats against Venezuela, VA’s columnist Jessica Dos Santos recalls the 1958 visit of Richard Nixon to Caracas, when mass protests forced Washington to mobilize its naval fleet. Today, the US has deployed forces near Venezuelan territory, while experts denounce the operations as illegal. 🔗 Read the full column here 👉🏽https://shorturl.at/2c3jm #TalesofResistance#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #1923 · 31.03.2025 г., 22:07

📑🖊 ANALYSIS | A Tattooed Venezuelan? Terrorist! The US has deported 238 Venezuelans to El Salvador, many without trial or evidence of criminal activity. Some were profiled based on tattoos or social media posts and sent to Bukele’s high-security prison under a 1798 law used only three times before. Families are demanding justice, while the Venezuelan government is stepping up efforts to bring migrants back. 🔗 Read Jessica Dos Santos’ full analysis in VA’s column Tales of Resistance here 👉🏼https://venezuelanalysis.com/columns/a-tattooed-venezuelan-terrorist #Migration#TalesofResistance

Venezuelanalysis

@venanalysis · Post #1761 · 30.09.2024 г., 21:22

VA columnist Jessica Dos Santos describes a recent nationwide blackout in Venezuela and the memories from similar events in 2019. While the country returned to normal faster this time, questions about the state of the electrical infrastructure linger. Read the full column here 👉🏼https://shorturl.at/kFJlK #ElectricalGrid#TalesofResistance

Venezuelanalysis

@venanalysis · Post #1575 · 22.05.2024 г., 16:46

The US sanctions severely impact Venezuela's healthcare. Authorities report they can't buy essential medicines for infants with metabolic disorders or operate radiotherapy equipment. However, Venezuelan doctors have made significant medical advances. Innovations include a novel fetal surgery technique and a cost-effective treatment for neonatal pulmonary conditions. Discover more in Jessica Dos Santos's latest column 👉🏼https://shorturl.at/bjVrn #talesofresistance#VAColumn

Venezuelanalysis

@venanalysis · Post #2340 · 18.04.2026 г., 20:52

🖊🗞COLUMN | Self-Management in Cota 905: From the Most Dangerous Barrio to an Open Air Art Gallery VA columnist Jessica Dos Santos documents how a grassroots initiative is helping Cota 905 overcome its stigma of armed gangs and police violence. Between 2014 and 2021, Cota 905 in Caracas was under the control of armed gangs, impacting around 300,000 residents and limiting access to services. In 2021, the government launched Operation Gran Cacique Indio Guaicaipuro, deploying 34 checkpoints as part of a large-scale security intervention. Following these events, a community initiative called “The Cota 905 Tour: A Thousand Stories, Over a Hundred Murals, One Route” was developed. The project includes more than 100 murals and was created with participation from residents, artists, and local collectives. It has been officially recognized by Venezuela’s Ministry of Tourism. Read the full VA column here: https://venezuelanalysis.com/columns/self-management-cota-905-from-the-most-dangerous-barrio-to-an-open-air-art-gallery #Barrios#Cota905#TalesofResistance

Venezuelanalysis

@venanalysis · Post #1997 · 05.06.2025 г., 19:39

🖊 COLUMN | Venezuela, Popular Power and Coffee Jessica Dos Santos' latest column showcases how 18 communes in Sanare, Venezuela, launched the “Enriquito Colmenárez” coffee-roasting plant after receiving it from the Agriculture Ministry. The grassroots initiative supports campesinos with subsidies, training, and direct diesel access, while preparing to export robusta beans to the US and Russia. The plant will also host a soil lab through a partnership with the United Nations Food and Agriculture Organization (FAO). 🔗 Read the full VA column here: https://shorturl.at/EAU4t #Coffee#Peasants#Campesinos#PopularPower#TalesofResistance