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
a melancholic unearthly attractive albino goddess with pale skin in a elegant dress, she is petting black human's arms that form out of the darkness. It annoying her but beautiful at the same time, magazine cover, fashion shot --ar 4:5 --v 7 --draft
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --v 7
by prisenkoan
#fantasy
📣 Midjourney prompts
photorealistic tall-format scene in Ralph Lauren rustic-luxury style. A woman with long, beautifully coiffed black hair stands by a large-paned window inside a refined, moody room. She wears a flowing satin gown and robe, gazing at a violent storm outside. The storm is fierce and foreboding, with trees bending in the wind, swirling leaves, heavy rain slashing against the window, and distant lightning illuminating a stormy night sky. The room is warm and opulent, lit by soft candlelight and a glowing fireplace. Equestrian and vintage Americana decor--dark wood, leather armchairs, and brass accents. Color palette: deep navy, burgundy, forest green, warm amber. Mood: cinematic, gothic, powerful, a sanctuary against the untamed storm --ar 3:4 --style raw --v 6.1
by daci_zaha
#fantasy
📣Midjourney prompts
establish shot of a middle-aged ancient persian general warrior sleeping under a tree. his white horse is standing far on the vast field, wears an ornate helmet of a skull with a pair of curved horns extend from the sides it, He is clad in elaborate armor of tiger-skin, a red sash around his waist, and decorative golden knee guards, cinematic shot, night time --ar 9:16 --v 6.1
by jarrell_odonell77
#fantasy
📣Midjourney prompts
A cosmic void with a glowing green portal slowly opening. The portal’s edges shimmer with crackling energy, and ghostly, tentacle-like forms begin to emerge. The scene is filled with swirling, otherworldly clouds in shades of green and purple, creating a hypnotic vortex effect. In the foreground, a solitary cultist stands on a jagged rock outcrop, arms raised toward the portal in supplication. The camera captures the moment from a low angle, emphasizing the grandeur of the portal and the cultist’s insignificance in comparison. The lighting is surreal, with the portal casting eerie shadows across the landscape. --ar 16:9 --v 6.1
by nsihi_01366
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --p 78qe8bg --v 6.1
by prisenkoan
#fantasy
📣 Midjourney prompts
A foggy Victorian-era forest with a hidden ancient stone altar covered in strange, glowing runes. A horned shadow looms over the altar, barely visible through the mist. The atmosphere is tense and foreboding, with twisted trees forming claw-like shapes and the ground littered with broken branches. – sepia filter, Victorian horror, haunting and mystical --ar 16:9 --v 6.1
by max3en
#fantasy
📣 Midjourney prompts
In the secluded and mysterious deep mountains, a huge pale blue mushroom is scattering spores, as if communicating with the surrounding environment. This scene is presented in a long shot composition. The top of the mushroom emits soft light, and the stem part has fine textures. The picture adopts a surreal photography style, integrates fantasy art aesthetics, has studio lights, has the strange beauty of Chinese style, exquisite lines, is rendered by Unreal Engine, presenting 8K movie effects and real light and shadow effects --ar 9:16 --v 6.1
by ellie_21352
#fantasy
📣 Midjourney prompts
A close-up portrait of a mystical figure with a dual persona. One side of their face is adorned with intricate golden armor, detailed with elegant patterns and flourishes. The other side is engulfed in dark, organic shadows that resemble living flames or smoky tendrils, blending seamlessly into their skin. Their eyes are strikingly different: one a piercing, icy blue and the other a fiery, intense amber. The figure’s gloved hands, dark and clawed, frame their face as they look forward with a mix of allure and mystery. Soft, wavy hair cascades around them, highlighted by warm lighting that contrasts beautifully with the darkness. The mood is surreal and fantasy-inspired, blending beauty and darkness with high detail and dramatic lighting --ar 9:16 --v 6.1
by boombamblum1
#fantasy
📣 Midjourney prompts
An antique hand holding the sacred heart of divine love, with silver ornaments and rays around it, in the style of hyper-realistic photography. --ar 85:128 --v 6.1 --p kqus8w7 --s 90
by cherryoasis
#fantasy
📣 Midjourney prompts