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

Резултати

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

Пребарај: #hope

当前筛选 #hope清除筛选
Pensive|

@PensivePost · Post #4871 · 04.02.2021 г., 17:11

Why I don't have any power? I guess you have Okk, what kind? Can I breath in water? NO Will I live forever? NO Strength or speed? NO Okay, then you tell me please You've the power of HOPE It will never let you die , just don't let it die No matter how many times you lost your battle You'll stand again and try, just don't let it die You'll be able to see light in the dark Your little little steps will reach to your mark The road could be long but won't be wrong All you need to listen is the voices of your heart We gave you something, which no GOD has This makes you different, a human from the ash All the suffering i know you can cope I believe you child, use the power of HOPE #review#poetry#hope

Pensive|

@PensivePost · Post #5299 · 16.06.2021 г., 04:19

NOTHINGNOTHING There is so much to see, so much to feel. So much to talk, so much to do. So much to take, so much to give. So much to make, so much to break. So much of so much that makes time scarce. And then there is nothing. Nothing that withholds all the nothings that makes everything. Nothing that subsumes everything we'll ever be. Nothing that consumes everything as it sees. #Hope... #poem#review

Pensive|

@PensivePost · Post #5271 · 04.06.2021 г., 12:03

JUST ANOTHER LIE... Ever since I started walking he was always next to me. I have known him forever. I loved him forever. He was my best friend before even knowing what friendship was. Whenever he held me tight I never wanted to let him go. When others made me cry, he was the only person who made me smile. There were so many times I wanted to tell him how I felt. I never knew what to say, just like today. Standing in here embellished my face with a smile. All eyes on us made me feel overwhelmed. Holding up the glass and all I could think of. What should I say? Should I say how much I love him? Should I say I will always love him and he is the love of my life? Should I say how I really feel? Or just another lie. All these years I waited to see love in his eyes. And there it is, for a fraction of second I saw that love in his eyes gazed around just to see the love of his life. Finally he looked at me raising his glass. The time has come. Now what do I say? That I loved him the most? That earth stops spinning when he looks at me every time. Or just another lie. Well among all the thought that was running in my head all my mouth could comprehend was just another lie. A congratulatory toss on his wedding day. #review#shortstory#Hope...

Pensive|

@PensivePost · Post #5747 · 23.05.2022 г., 12:57

Hope meaning in my word's "Light" We just walking under the tunnel because we know we can find a light end of this tunnel. Life is equal to tunnel so don't stop. Keep walking. #review#RC#hope

Journey to Fluency

@fluencyinenglish · Post #6410 · 04.09.2018 г., 18:08

#grammar #wish #hope @fluencyinenglish @ieltsstrategies How should I use "I hope" and "I wish"? @fluencyinenglish @ieltsstrategies ✅If you want to use "I hope" and "I wish" correctly, you just need to memorize these two phrases: I hope I can... I wish I could... You may be wondering: why do English speakers use the present tense for "hope" and the past tense for "wish"? The secret is that "could" is not really past tense. It looks like past tense, but it's secretly something different. It's the "unreal" aspect. In other words, it expresses something that's not really true, or not very likely. We use "wish" to talk about things that are impossible, or things that probably won't happen: I wish I could fly. I wish there were more hours in the day. I wish I'd studied something a little more practical. On the other hand, we use "I hope..." when there's a good chance that something might happen. You can use it to say what you want to happen in the future: I hope this cake turns out OK. I hope we can still be friends. The grammar of "wish" and "hope" Here's how "wish" and "hope" look in present, past, and future. @fluencyinenglish @ieltsstrategies ❇️Present I hope this is the last mistake. I wish my phone worked here. @fluencyinenglish @ieltsstrategies ❇️Past I hope Antonio got home safely.* I wish you'd told me sooner. * You can't use "hope" to talk about something in the past, unless you don't know what happened yet. In this example, you haven't heard whther Antonio got home safely. @fluencyinenglish @ieltsstrategies ❇️Future I hope it stops raining soon.* I wish it would stop raining. * You follow "hope" with the present tense of a verb, even when you're talking about the future. So you say "I hope it stops" instead of "I hope it will stop." @fluencyinenglish @ieltsstrategies

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40388 · 22.12.2025 г., 19:02

This year, scientists found a way to control HIV without daily medicine. They used special lab-made antibodies in two tests. Some people stayed healthy without HIV drugs long after the treatment stopped. This shows it might be possible to live with HIV without taking pills every day. 💉🦠 [Source] @googlefactss#HIV#Science#Health#Hope

TMONK Announcements

@tmonkannouncements · Post #70 · 13.04.2024 г., 23:37

At this tragic moment our thoughts go both to the people affected by the anguish and fear of having to face war scenarios, and to those who unfortunately are already experiencing it. TMONK as #charity project It was born to #help others, to give #help in difficult times, to bring #hope where it is very difficult to see it. But we must also act with facts, not always the word is enough, and for this $TMONK will open a #fundraising for #war victims We hope that @tonchain, @telegram and all our partner will support this initiative. For the #freedom e #dignity of people. To give them a ray of #hope CHARITY WALLET: UQBj5EpW8M2qYDeb4Sx5XV4XaBGgC0LGGpyV6cwCkvpZiN25 (only $TON)

12
ПретходнаСтраница 1 од 2Следна