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

Резултати

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

Пребарај: #gemstones

当前筛选 #gemstones清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #1325 · 03.03.2026 г., 12:11

🌎 The rare blue mineral painite was first discovered in Myanmar in 1951 and is so scarce that only a few hundred crystals have ever been found worldwide. Painite contains boron, zirconium, and aluminum, and transparent gem-quality stones are especially valuable to collectors. ✨ #geology⚡#minerals⚡#gemstones 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1250 · 23.01.2026 г., 22:11

🌎 Red beryl, also called bixbite, is one of the rarest gemstones on Earth and is found almost exclusively in Utah’s Wah Wah Mountains. Its rich red color comes from trace amounts of manganese. Fewer than one red beryl is found for every 150,000 diamonds mined worldwide. ✨ #minerals⚡#gemstones⚡#geology 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1105 · 06.12.2025 г., 18:11

🌎 Discovered only in Greenland and the Kola Peninsula, rare mineral serendibite forms deep in metamorphic rocks and can display vivid blue-green hues. Gem-quality serendibite is so scarce that a single carat can cost over $2,000. ✨ #minerals⚡#geology⚡#gemstones 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1071 · 25.11.2025 г., 18:11

🌎 Blue garnet is one of the rarest gemstones on Earth, discovered in Madagascar in the late 1990s. Unlike most garnets, it changes color—from blue-green in daylight to purple-red under incandescent light—due to trace amounts of vanadium absorbing light differently. Only tiny amounts have been found so far, with most crystals under one carat. ✨ #geology⚡#minerals⚡#gemstones 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #961 · 24.10.2025 г., 20:11

🌎 One of the rarest crystals on Earth is musgravite, first discovered in Australia’s Musgrave Ranges in 1967. Transparent musgravite gemstones are extremely scarce, with fewer than 20 certified specimens reported worldwide. ✨ #minerals⚡#gemstones⚡#geology 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #731 · 11.09.2025 г., 20:22

🌎 The mineral grandidierite is one of the world’s rarest gemstones and was first discovered in Madagascar in 1902. Its blue-green crystals get their striking color from traces of iron, and transparent gem-quality stones are so scarce that most museums only display tiny specimens. ✨ #minerals⚡#gemstones⚡#geology 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #697 · 06.09.2025 г., 03:22

🌎 The mineral taaffeite was discovered accidentally in 1945 by gemologist Richard Taaffe, who bought a mislabeled gemstone in Dublin. This rare crystal is prized for its lavender color and is mostly found in Sri Lanka, Myanmar, and Madagascar. Fewer than 50 verified cut taaffeites exist worldwide. ✨ #minerals⚡#gemstones⚡#geology 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #513 · 07.08.2025 г., 00:22

🌎 An ancient “rainbow” mineral called ammolite forms from fossilized ammonite shells. With its dazzling reds, greens, and blues, ammolite is one of the world’s rarest gemstones, found mainly in Canada’s Rocky Mountains. ✨ #geology⚡#fossils⚡#gemstones 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #407 · 24.07.2025 г., 17:22

🌎 In Australia’s opal fields, some opals contain ancient fossilized bones or shells, perfectly preserved in dazzling rainbow stone. This rare “opalized fossil” forms as minerals slowly replace bone, creating a sparkling record of prehistoric life. ✨ #fossils⚡#minerals⚡#gemstones 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #762 · 16.09.2025 г., 18:22

🌎 The mineral jeremejevite forms pale blue, yellow, or colorless crystals and is among the world’s rarest minerals. Discovered in Namibia in 1883, it is an aluminum borate mineral that forms in granite pegmatites. Transparent gem-quality jeremejevite is so scarce that it can sell for over $2,000 per carat. ✨ #minerals⚡#crystals⚡#gemstones 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #894 · 11.10.2025 г., 20:11

🌎 Alexandrite is a rare mineral that changes color under different lighting—appearing green in daylight and red under incandescent light. This gemstone was first discovered in Russia’s Ural Mountains in 1830, and crystals large enough for jewelry are extremely scarce worldwide. ✨ #alexandrite⚡#minerals⚡#gemstones 👉subscribe Interesting Planet 👉more Channels ​