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

Резултати

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

Пребарај: #plants

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

@amazingeo · Post #549 · 01.01.2026 г., 12:31

🌍 The Polynesia-Micronesia region is a biodiversity hotspot that covers thousands of remote islands, harboring more than 2,000 unique plant species found nowhere else in the world. ✨ #biodiversity⚡#islands⚡#plants⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #371 · 21.07.2025 г., 00:22

🌎 The Amazon rainforest is home to the walking palm tree, which appears to “walk” as it slowly grows new roots to move toward sunlight, gradually shifting its position over years. ✨ #rainforest⚡#plants⚡#adaptation 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #370 · 20.07.2025 г., 22:22

🌎 In South America, the giant water lily grows leaves up to 3 meters wide—strong enough to support a small child’s weight! Its waxy surface and ribbed underside help it float, creating floating “rafts” that shelter fish and frogs in warm, shallow waters. ✨ #plants⚡#nature⚡#adaptation 👉subscribe Interesting Planet

Amazing Geography 🌍

@amazingeo · Post #480 · 27.11.2025 г., 20:31

🌍 Some biodiversity hotspots, like the Cape Floristic Region in South Africa, pack over 9,000 plant species into just a tiny area—nearly 70% found nowhere else on Earth. ✨ #biodiversity⚡#plants⚡#hotspots⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1272 · 04.02.2026 г., 12:11

🌎 The corpse flower (Amorphophallus titanum) from Indonesia produces one of the world’s largest and smelliest blooms, reaching over 3 meters tall. The flower emits a strong odor similar to rotting meat, which attracts carrion beetles and flies for pollination. ✨ #plants⚡#botany⚡#biodiversity 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1179 · 31.12.2025 г., 18:11

🌎 The world’s smallest flowering plant, Wolffia globosa, floats on freshwater ponds and is less than 1 millimeter long. A single gram can contain over 150,000 individual plants. ✨ #plants⚡#biodiversity⚡#botany 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #912 · 15.10.2025 г., 15:11

🌎 Hidden deep in Western Australia, the rare Kingia australis plant produces tall, grass-like stems crowned with spiky flower heads. Its slow-growing trunk can take up to 150 years to reach just 5 meters, making it one of the region’s botanical oddities. ✨ #plants⚡#botany⚡#biodiversity 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #782 · 19.09.2025 г., 18:22

🌎 The Hydnora africana is a rare, parasitic plant native to southern Africa. It grows underground, emerging only to bloom with a fleshy, foul-smelling flower that attracts beetles for pollination. Its flowers can take up to a year to develop under the soil. ✨ #plants⚡#biodiversity⚡#botany 👉subscribe Interesting Planet ​

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