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

Резултати

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

Пребарај: #bikes

当前筛选 #bikes清除筛选
Car News

@car_news · Post #1891 · 16.03.2026 г., 13:28

🇯🇵 Yamaha releases the world’s first production scooter with an airbag 🏍 The new Tricity 300 (2026) features a collision detection system that deploys an airbag from under the handlebar during an accident. 🤞 Tests show that using this system reduces life-threatening risk by more than 30 times. 💰 Sales are expected to start next quarter. The official price hasn’t been announced yet, but the current Tricity 300 version costs around $10,000. #bikes@Car_News

Hashtags

Car News

@car_news · Post #1650 · 08.11.2025 г., 14:45

🏍Brabus unveils motorcycle priced at €42,000 📰 German tuning house Brabus has presented the exclusive 1400 R Signature Edition bike, based on the KTM 1390 Super Duke R EVO. 🔎 The motorcycle features carbon bodywork, 17-inch Monoblock II EVO Platinum Edition wheels, leather seats with Dinamica microfiber, and special dashboard graphics. 🐎 The 1.35-liter V2 engine retains its 190 hp and 145 Nm output and is complemented by a Brabus exhaust system. The bike is equipped with WP-APEX semi-active suspension and Brembo brakes. #bikes#Brabus@Car_News

Car News

@car_news · Post #1591 · 17.10.2025 г., 12:40

📰Yamaha goes full cyberpunk 🏍 This is the MOTOROiD 2, a motorcycle from the future. 🔎 It features a self-balancing system that keeps the bike upright and prevents it from tipping over. The bike can recognize its owner’s face and respond to gestures. Instead of traditional handlebars, it has integrated grips built into the body and supports autonomous control. #Yamaha#bikes@Car_News

Bali News

@balinews · Post #346 · 11.03.2025 г., 12:00

🛵Bali governor wants to ban tourists from driving bikes...again 😠 Bali Governor Wayan Koster has decided to revisit the topic of tourists driving motorcycles. He complained that foreigners are recklessly riding motorcycles without clothes and without helmets. 📰 The governor plans to introduce a regional PERDA regulation banning tourists from driving motorcycles. The measure is proposed in response to frequent traffic violations by commuters and is aimed at improving safety and order on the roads. 🤔Such initiatives have arisen before, but did not find support from the authorities and were not implemented. It is still unknown whether this decree will pass now, as the Minister of Tourism in Indonesia has changed since last time. @BaliNews #transport#bikes#rules#tourism