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 слични објави

Пребарај: #ramadanchallenge

当前筛选 #ramadanchallenge清除筛选
WESTER School

@wester_uz · Post #3561 · 11.03.2025 г., 00:00

#RamadanChallenge Lesson 2:🎬 📌Listening: Types of Listening Questions Part 1 and Part 2 👨‍🏫 Speaker: Mr. SaidIslom - Overall: 8.5 (Listening:9.0) 📆 Date: 11.03 ⏰ Time: 06:00 Venue: 📌@westerschool_IELTS

Doniyor Olimjonov English | IELTS

@doniyorieltss · Post #1227 · 24.03.2023 г., 11:15

Many governments think that economic progress is their most important goal. Some people, however, think that other types of progress are equally important for a country. Discuss both these views and give your own opinion. It goes without saying that for a nation to flourish its economy needs to be robust, which may lead many authorities to believe that developments in this field should be their sole priority. However, I believe that there are other, possibly more important, aspects to consider. The natural instinct, when a nation is on the brink of a development or recession, is to question its economic soundness. After all, it is wealth that decides a country's fate in most cases. Take the UAE, a previously desolate dessert that is currently home to hundreds of thousands of high-rise buildings. If it hadn't been for its rich natural resources, it wouldn't have gone from abject 'nothingness' to what is now known as the richest nation in the world. In addition to its affluency, this nation is also renowned for its rich culture, which could be explained by the fact that it is a mainstream tourist destination. People from all backgrounds flock to this place in search of a better life, making it all the more popular. Thus, it is safe to say that the economy should, in fact, get a lot of the attention. But it would be unfair if the economy alone received all the credit for a nationwide success. There are usually other rather obscure sectors that inevitably spotlight economic developments as being responsible for any type of improvement in a country. Without a healthy population, for example, it is almost impossible for a society to exist, let alone thrive. One such example is Africa where, despite its rich resources, sickness and poverty run rampant. The economy doesn't signify at this point, as all the existing resources are squandered on treating the ever-increasing diseases. Education plays another important role in this regard. Having quality or poor education can mark the difference between a bright and a grim future for young people that will one day contribute to the national workforce. In other words, it is schools where any type of development begins. Economic strides are certainly essential — it is thanks to them that a country can compete with its counterparts in wealth and power. However, there won't be an economy to boost unless other types of progress, such as the medical and educational ones, receive the same level of attention, if not more. After all, these are the stepping stones to improved economy, which is the path to a better future. #MyWriting#RamadanChallenge @ieltsulugbeks

Doniyor Olimjonov English | IELTS

@doniyorieltss · Post #1220 · 23.03.2023 г., 02:44

#WritingTask2#Economy#RamadanChallenge Many governments think that economic progress is their most important goal. Some people, however, think that other types of progress are equally important for a country. Discuss both these views and give your own opinion. I will soon send my plan and sample answers for this task. @ieltsulugbeks