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

Резултати

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

Пребарај: #right

当前筛选 #right清除筛选
America 🇺🇸 News & Politics

@America · Post #10267 · 27.12.2025 г., 02:33

😄Right ➖➖➖➖➖➖ 🔘Right as an adjective can mean something is correct. 🔜Well done! You got the answer to the question right. 🔜I didn't know she was right about his age. He looks so much younger. 🔘Right can be an adjective to mean something is suitable for a person, objective or situation. 🔜I think Sandra is the right person to run the community project. 🔜The moment I met my wife, I knew we were right for each other. 🔘Right is an adjective and means the opposite of left. 🔜The right side of the picture is brighter. 🔜Take a right turn at the end of the lane to reach my house. 🔘We can also use this meaning of right as a noun, often with the preposition 'on' – 'on the right' 🔜To go to the bank, take the third road on the right. 🔜In the UK, we drive on the left, while in many countries people drive on the right. 🔘Right as an adjective can be used to talk about being healthy or to say that something is working correctly. 🔜I didn't feel right after those fish and chips. I was sick. 🔜This computer isn't right. I think it has a virus. #Right👨‍🏫@America ➖➖➖➖➖➖➖➖➖➖➖➖ 🆕 Crypto News @Money 😁 Crypto Game @Egame 🇺🇸 US News @America 🇯🇵 Japan News @Japan 🇦🇪 UAE News @Dubai ▶️ Popular Movies @Videos 😜 Best Funny Video @Funnys

Hashtags

😄Right ➖➖➖➖➖➖ 🔘Right as an adjective can mean something is correct. 🔜Well done! You got the answer to the question right. 🔜I didn't know she was right about his age. He looks so much younger. 🔘Right can be an adjective to mean something is suitable for a person, objective or situation. 🔜I think Sandra is the right person to run the community project. 🔜The moment I met my wife, I knew we were right for each other. 🔘Right is an adjective and means the opposite of left. 🔜The right side of the picture is brighter. 🔜Take a right turn at the end of the lane to reach my house. 🔘We can also use this meaning of right as a noun, often with the preposition 'on' – 'on the right' 🔜To go to the bank, take the third road on the right. 🔜In the UK, we drive on the left, while in many countries people drive on the right. 🔘Right as an adjective can be used to talk about being healthy or to say that something is working correctly. 🔜I didn't feel right after those fish and chips. I was sick. 🔜This computer isn't right. I think it has a virus. #Right👨‍🏫@America ➖➖➖➖➖➖➖➖➖➖➖➖ 🆕 Crypto News @Money 😁 Crypto Game @Egame 🇺🇸 US News @America 🇯🇵 Japan News @Japan 🇦🇪 UAE News @Dubai ▶️ Popular Movies @Videos 😜 Best Funny Video @Funnys

Hashtags

搜书神器 读书动态

@BookLogSFW · Post #91233 · 19.05.2026 г., 00:25

书名:青花鱼】关于我热衷给发小戴绿帽子这回事 文件:简体中文 · TXT · 337KB · 9.1万字 · 1R 统计:344热度 | 30下载 | 1点赞 | 0收藏 评级:0分 (0人) 💬 质量:9.6分 (0人) 标签:#手机#来自#发小#太太#许赟#糖糖#喜欢#圆圆#仙子#加油#本帖#沈棠#撒花#完结#可爱#手指#pcb#margin#right#不要 #预览#SFW#收藏书籍 📜我喜欢的书籍[8022本]