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
🌍 Monaco’s entire population could fit in a large cruise ship, while Tokyo’s metro area holds more people than all of Australia. Such extremes show the incredible variety in world population sizes. ✨
#population⚡#density⚡#cities⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The world's population density varies wildly—Macau holds more than 20,000 people per square kilometer, while Greenland has less than one person per square kilometer, reflecting extremes in settlement. ✨
#population⚡#density⚡#settlement⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Earth is the densest planet in the Solar System. Its mix of heavy metals at the core and lighter rocks on top gives Earth an average density higher than any other planet we know. ✨
#planet⚡#density⚡#core⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
Lemons float in water because they have air pockets inside that make them less dense than water. Limes, on the other hand, usually sink because they have fewer air pockets and are denser. The difference in density is why lemons float but limes don’t. 🍋
[Read more]
@googlefactss#LemonFacts#Density#ScienceExplained
🪐 The giant planet Saturn is so light for its size that if you could find a big enough pool of water, it would float—its average density is less than water’s! Saturn's stunning ring system, made mostly of chunks of ice and rock, stretches out more than 280,000 kilometers from the planet, dwarfing the distances between many of its moons. ✨
#Saturn⚡#rings⚡#density⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
🌍 The city of Dhaka, Bangladesh has a population density topping 44,000 people per square kilometer—making it one of the world’s most crowded major cities, packed into a small area. ✨
#population⚡#density⚡#urban⚡#Asia⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Bangladesh is one of the most densely populated countries, with over 1,200 people per square kilometer. Despite its small size, it is home to more than 170 million people. ✨
#population⚡#density⚡#Bangladesh⚡#demographics⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Monaco is the most densely populated country on Earth, with over 25,000 people per square kilometer. This tiny city-state squeezes more residents into each square mile than anywhere else. ✨
#population⚡#density⚡#Monaco⚡#countries⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
[나 혼자 산다 617화 251011편에서 덴서티 장비 등장!]
by BRILLER(t.me/BRILLER_Research)
제가 매주 챙겨보는 나혼산 어제편에서 구성환님이 피부과를 방문하셨는데 제이시스 메디칼의 덴서티 장비가 나왔네요 ㅎㅎ
(구성환님의 경우 백반증 치료를 위해서 RF 고주파 시술 + 줄기세포 치료 시술을 받으셨습니다.)
저도 2년전에 덴서티 처음 장비 나오고 얼마 안됬을 때 바로 시술을 받았었는데 추억이 새록새록 떠오릅니다ㅎㅎ
개인적으로는 덴서티는 현존하는 모노RF카피장비 중 써마지 4세대 FLX장비에 가장 가깝게 구현된 장비라고 생각을 했고 시술받았을 때 느낌을 딱 다시 떠올려보면 모노RF 시장에서 m/s를 빠르게 치고 올라올거라는 감이 왔었고 실제로 장비 출시후 초기 덴서티 장비가 깔리는 속도도 제법 빠른편이었습니다.
장비 출시후 1년정도 됬을때 그 부분이 더 명확해졌고 현재 장비 출시후 2.5년정도 됬는데 장비도 계속 업그레이드 되면서 모노RF 장비중 메인장비가 되었습니다.
(덴서티가 잘 될거라고 생각을 했고 장비 출시초기 시술도 받아보고 느낌도 왔고 그게 맞게 떨어졌는데 이제는 제이시스메디칼을 투자를 못한다는게 더더 아쉬울 뿐입니다 ㅎㅎ)
단점은 장비 완성도에 비례해서 다른 모노RF 카피장비 대비 시술가가 높습니다.
모노팁 시술가도 비싼편인데 하이팁으로 시술받으면 써마지에 거의 준하는 시술가에 가까워집니다.
영상에서 보면 덴서티 장비의 가운데 부분이 골드색상인데 해당 장비는 하이팁을 사용할 수 있는 장비입니다.ㅎㅎ
(하이팁 사용이 불가능하고 모노팁만 사용이 가능한 덴서티 장비는 가운데 부분이 골드가 아니라 화이트에 가까운 실버색상)
애청하는 나혼산에서 피부과가 나오고 덴서티 장비가 나오니 너무 반갑네요!🫶🏻
#덴서티, #DENSITY, #제이시스메디칼, #나혼자산다, #나혼산