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

Резултати

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

Пребарај: #getvaccinated

当前筛选 #getvaccinated清除筛选

Vaccines are one of the best tools we have to improve health and well-being around the world. #TakeResponsibility, encourage your loved ones and those around you to #GetVaccinated. Visit https://www.vacsitefinder.nphcda.gov.ng/ to locate the nearest vaccination site to you.

📢 Nigerians are advised to continue to #TakeResponsibility. Visit the nearest government health facility to #GetVaccinated if you have not been previously vaccinated. 🔗 Public Health Advisory: https://www.ncdc.gov.ng/news/429/public-health-advisory-following-the-presidential-approval-for-the-relaxation-of-covid-19-safety-measures-%26-travel-advisory @PSCCOVID19 Update: https://covid19.ncdc.gov.ng/media/files/Press_Release_-_Relaxation_of_COVID-19_Rules_Ako_221212_210142.pdf

🚨DIPHTHERIA SITUATION REPORT🚨 As of March 9, 2025 (Epi-Week 10): 📍 23 suspected cases reported in Lagos (20) and Katsina (3) 📍 0 confirmed cases this week 📍 42,642 suspected cases recorded since 2022 across 37 states 📍 25,812 confirmed cases & 1,319 deaths (CFR: 5.1%) 🔹 Most affected states: Kano, Yobe, Katsina, Bauchi, Borno 🔹 62.9% of cases are in children aged 1–14 years 🔹 Only 19.3% of confirmed cases were fully vaccinated 💉 Vaccination is key! Protect yourself and your loved ones. 📞 Report suspected cases via NCDC’s toll-free line: 6232 🔗 Read more: https://ncdc.gov.ng/themes/common/files/sitreps/0a1f4b602a9f655c68b316934e533928.pdf #Diphtheria#GetVaccinated#NCDCNigeria

People most at risk of #diphtheria infection are urged to #GetVaccinated These include: ➡️Children & adults who have not received any dose of the anti-diphtheria vaccine ➡️Healthcare workers & others who have been exposed to suspected/confirmed cases ➡️People who live in areas with poor sanitation #TakeResponsibility to stay safe

Severe disease, admissions and deaths disproportionately affect the unvaccinated and those with risk factors i.e., older people, people with underlying health conditions and the immunocompromised. #GetVaccinated against #COVID19 to stay safe and healthy. #TakeResponsibility

#COVID19 is still a health threat If you are experiencing symptoms associated with #COVID19, visit the nearest testing centre close to you for diagnosis & treatment #GetVaccinated, the vaccine protects you from severe illness, hospitalisation & death #TakeResponsibility

Severe disease, admissions and deaths disproportionately affect the unvaccinated & those with risk factors i.e., older people, people with underlying health conditions and the immunocompromised. #GetVaccinated against #COVID19 to stay safe and healthy. #TakeResponsibility

Getting vaccinated protects you from severe illness, hospitalisation & death from the #COVID19 virus. #TakeResponsibility, encourage your loved ones and those around you to #GetVaccinated. Visit https://www.vacsitefinder.nphcda.gov.ng/ to locate the nearest vaccination site to you.

Elderly persons & those with existing medical conditions are encouraged to take extra precautions to stay safe & healthy. 💉#GetVaccinated to limit your risk of getting infected with #COVID19. Vaccination sites: https://nphcda.vaccination.gov.ng/vaccination-sites #TakeResponsibility

12
ПретходнаСтраница 1 од 2Следна