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

Резултати

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

Пребарај: #timezones

当前筛选 #timezones清除筛选
Amazing Geography 🌍

@amazingeo · Post #454 · 14.11.2025 г., 20:31

🌍 The island nation of Kiribati is so spread out that it once straddled the International Date Line. In 1995, it shifted the line eastward, so the entire country could share the same date. ✨ #timezones⚡#Pacific⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #685 · 08.04.2026 г., 20:31

🌍 Time zones are not always set by longitude—some countries, like China, use one time zone nationwide despite spanning five natural zones, affecting daily life from sunrise to sunset across vast distances. ✨ #timezones⚡#clocks⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #186 · 06.09.2025 г., 09:12

🌍 Some time zones offset by just 15 or 30 minutes exist, like India’s UTC+5:30 and Newfoundland’s UTC−3:30. These unusual divisions reflect local choices instead of sticking to whole hours. ✨ #timezones⚡#clocks⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40446 · 31.12.2025 г., 10:04

Kiribati starts the New Year exactly now!!! At midnight (UTC+14). When it’s midnight there, it’s still 10 AM in London, 11 AM in Brussels (Europe, Belgium), and 1 PM in Moscow on December 31. Europe welcomes the New Year 12–14 hours after Kiribati. ⏰🌏🎉 [Read more1] [Read more2] When does your new year start? This post also counts as the place to send your New Years greetings/Wishes! We wish you all a fun, fulfilling, healthy and happy New Year! @googlefactss #NewYear#Kiribati#TimeZones#Facts

Amazing Geography 🌍

@amazingeo · Post #341 · 06.10.2025 г., 20:31

🌍 Some Antarctic research stations use New Zealand’s time zone, while others choose the time of their home country. This means clocks at the South Pole can show different times—sometimes up to 12 hours apart. ✨ #timezones⚡#antarctica⚡#clocks⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #66 · 17.08.2025 г., 16:12

🌍 The border between Norway and Russia runs along a tiny river, but despite being so far north, the local time can differ by two hours due to the countries choosing different time zones. ✨ #timezones⚡#borders⚡#Scandinavia⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Amazing Geography 🌍

@amazingeo · Post #523 · 19.12.2025 г., 12:31

🌍 Nepal is one of the few countries that advances its clocks by 45 minutes from standard time, using a unique offset of UTC+5:45 to better match local solar time. ✨ #timezones⚡#Nepal⚡#clocks⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #221 · 12.09.2025 г., 03:12

🌍 Daylight saving time isn't used worldwide; many countries near the Equator never change their clocks because daylight hours barely vary throughout the year. ✨ #timezones⚡#daylight⚡#equator⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #74 · 19.08.2025 г., 00:12

🌍 On January 1 each year, the first sunrise on Earth is usually seen in the Pacific island nation of Tonga or its neighbor, depending on the position of the International Date Line. ✨ #timezones⚡#sunrise⚡#Pacific⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

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