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

Резултати

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

Пребарај: #nandini

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

@PensivePost · Post #5250 · 01.06.2021 г., 14:01

And there is always enough of colours in the rainbow to paint light when tears are lossened and the sky is dull. And there is always a little magic on tomorrow to paint our skin and to hold on to us a bit more when we are falling apart. #review#nandini

Pensive|

@PensivePost · Post #5209 · 17.05.2021 г., 15:40

•Happier• //Recreated Lately, I've been, I've been thinking, I want you to be happier, I want you to be happier. When the memories reminisce, When we see all the crisis, In the night of distress, we were happiness of a day, Now the tension that runs wild, Every word, every poem that I can't take back, Cause with all that of the mess I made, I think we know this way the story has a end. Then only for a minute, I want to change my mind, Cause this just impairs my heart, I wanna make everything normal, I wanna see you smile, Know that means I'll have to leave. When I am left all alone, And sky is my only muse, The sound of your voice falls on the ears out of nowhere, Well, that's just blissfully painful, But I pretend, I pretend that I'm okay, For now, if I get lost in that sky, I know not if I'll miss you. Then only for a minute, I want to change my mind, Cause this just impairs my heart, I wanna make everything normal, I wanna see you smile, Know that means I'll have to leave Know that means I'll have to leave Lately, I've been, I've been thinking, I want you to be happier, I want you to be happier. So, I'll fade, I'll fade, From you life, I'll fade. Lately, I've been, I've been thinking, I want you to be happier, I want you to be happier. Then only for a minute, I want to change my mind, Cause this just impairs my heart, I wanna make everything normal, I wanna see you smile, Know that means I'll have to leave Lately I've been, I've been thinking, If happier Would you be, If I leave ? #review #nandini

Pensive|

@PensivePost · Post #5133 · 25.04.2021 г., 14:36

And one day in my eyes, Flashbacks ran so many lies, With them my soul sighs, Let's paint the sky with stars tonight. Only night knows the pain, How my innocence had a stain, With it my brain reminds, Let's paint the sky with stars tonight. Who had placed my thoughts on sale ? Bleeding with rue and guilt, With this my heart cries, Let's paint the sky with stars tonight. Hues of red and blues, Sensing each incident I went through, With this my body trembles, Let's paint the sky with stars tonight. Who had brought the midnight sky ? Dreams kept me to not die, With this my eyes shined, Let's paint the sky with stars tonight. Placed a name upon this night, One to set my heart alight, With this the darkness turned bright, Let's paint the sky with stars tonight. #review#nandini

Pensive|

@PensivePost · Post #5131 · 25.04.2021 г., 06:23

And we keep looking for those teeny tiny moments, Like waiting for time and it's laments, The only story that always remains the same, A seed you plant, and wait for it to grow. Yet hope is home you live in. Look over what you dreamt, Weave a web over mystery, Threads you try to sew into a cloth, Like ebb and flow of ocean's tide, Yet hope is home you live in. Under the sky, we all travel far, On roads of life, as ramblers, Look over dreams again, If needed give them wings, Yet hope is home you live in. Look over love, the one you want, Whispering mind, and departing away ? If yes, give them some wings, Help them fly and soar among their stars, Because hope is a home you live in. #review#nandini

Pensive|

@PensivePost · Post #5130 · 24.04.2021 г., 18:04

Too many people, Too many shades, And I guess, These days, Everybody is fading. Less than a second, it takes for the people to fade away. In the mist, I don't know if with bliss or peace. Those nests, have all got incomplete and ruined. A father, a daughter, some of them being grandparents, this pandemic is leaving none. Were we being monsters to this heavenly earth ? Is this the result of our inability to see the hamartithia ? Days pass, and I see dead bodies of people thrown. And this, this is killing me every single second. I'm dying every single second. I'm halted in pieces as see a little girl questioning her mother that why did her father never return from the doctor. I'm left numb when I see those parents losing their little munchkins. I am shattered in bits and pieces as I see a 19 year old losing her only parent. I'm dying every single second. I search some smiles, but I, I find none. There is something in the air. It is polluted with fear, anguish, cries and mourns. My tears won't stop, I want them to cure. I'm in hatred with the word 'positive'. Every night, I pray, I pray to you, but why don't you listen anymore ? You take away my near and dear ones in just some mere seconds. Don't you love me, aren't we your children ? Don't you see pain of ours ? Now, I'm tired. My hands shake everytime I type, "May the person rest in peace." I lost my peace in pieces. I see myself dissected everyday. My nights have turned sleepless. I see those happy images of those dear persons, and then, then I see their bodies lying dead, as if they are asking me to help. I'm done. I'm done with this. I can't see anymore people dying due to lack of those oxygen cylinders or devoid of being treated. Why can't I help them ? I lie here, Helpless, Drowning with emotions, I can't see more deaths, I can't see more mourns and cries, Please help us, Forgive us for our crimes. ~Nandini #review #nandini

Pensive|

@PensivePost · Post #5100 · 14.04.2021 г., 07:37

Mummy thought I hated science, While I just looked for alliance She kept believing I hated science. What if I thought six to be nine, Geometry never seemed as lines, She kept believing I hated science. Those neutralization reactions, Were nothing more than distraction, She kept believing I hated science. Tried numbering those carbon chain, They danced, why, no one could explain, She kept believing I hated science. Speed of ball, I could not measure, Nor could solve, questions with pleasure, She kept believing I hated science. POV from a child suffering form dyslexia #review#nandini

Pensive|

@PensivePost · Post #5099 · 14.04.2021 г., 07:26

And we keep looking for those teeny tiny moments, Like waiting for time and it's laments, The only story that always remains the same, A seed you plant, and wait for it to grow. Yet hope is home you live in. Look over what you dreamt, Weave a web over mystery, Threads you try to sew into a cloth, Like ebb and flow of ocean's tide, Yet hope is home you live in. Under the sky, we all travel far, On roads of life, as ramblers, Look over dreams again, If needed give them wings, Yet hope is home you live in. Look over love, the one you want, Whispering mind, and departing away ? If yes, give them some wings, Help them fly and soar among their stars, Because hope is a home you live in. #review#nandini

Pensive|

@PensivePost · Post #4931 · 14.02.2021 г., 13:06

She just wanted to be beautiful, As the world denied to see her, She wanted to be praised, She wanted to be sculptured by scupltor. She has a light shining, Deeper than the eyes can find, People have made her blind, She tries to coverup her stars. But there's always hope, Waiting for you in the dark, You should know, You're beautiful just the way you are. The world will change their minds, You don't need to change a single thing, You are a star, You're beautiful just the way you are. Squint in your eye, Or a scar on your face, Won't change your worth, You're beautiful just the way you are. Flabby shoulders or chubby face, A little shorter you can be, But that can't stop you reaching skies, You're beautiful just the way you are. A little darker skin, Or a skinny body, Won't stop you to pursue what you want, You're beautiful just the way you are. You deny to see your worth, Beauty doesn't mean only on skin, You have a wonderful soul, You're beautiful just the way you are. You are the best version of yourself, You are a light no one can extinguish, You are a star always shining, You're beautiful just the way you are. The world will change their hearts, You don't need to change a thing, You are a flower bloom, You're beautiful just the way you are. ~Nandini To everyone out there, adore your imperfections, Because you're beautiful just the way you. Yes the one reading this. #review #nandini

Pensive|

@PensivePost · Post #5104 · 15.04.2021 г., 07:38

How do I tell you ? The song of your love, Plays loud in my mind, The reminiscence of your voice, Elates everytime I breathe Kaise bataye Kyun tujko chahe Yaara bata na paye. Spoke a million times, Everything in my dreams. Yet silent I remained, Everytime when you speak. You, a mere dream, May be of someone else, Yet my mystic mind, Never seems to sway away, My heart smiles, My mind cries, A Euphoria of mess, Is what it plays, Weaving thoughts of you, Yet I don't know, Why we ever met ? A distance of thousand miles, Unknown affection, Dearly dreams, And why all of these Includes you ? Here you are, Near to me, My hope, The feelings I get, Nunchi you have, Yet you are not mine. Soche ye, Tum kyu aaye, Meri iss Zindagi mai kyun, Dooriyan itni hai, Ki naazdikiyon, Se dar ab kyun, Phir bhi har waqt Mere khayalon mai, Sirf tum kyun ? Kaise bataye kyun tujko chahe, Yaara bata na paye, Batein dilon ki, hai abhi jo baki, Kyun tum samaj nahi paye, Tu jaane na..... Tu jaane na... You may never know.. #recreatedsong #review #nandini