@QuietWorld · Post #6982 · 26.11.2019 г., 17:13
multiply grateful for God's love, because your caution only guarantees 0, so% of your safety every day #realtalk@quietworld
Hashtags
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
Пребарај: #realtalk
@QuietWorld · Post #6982 · 26.11.2019 г., 17:13
multiply grateful for God's love, because your caution only guarantees 0, so% of your safety every day #realtalk@quietworld
Hashtags
@QuietWorld · Post #6438 · 06.05.2019 г., 09:55
💯 #realtalk#life@quietworld🍃
@QuietWorld · Post #6383 · 19.04.2019 г., 14:58
this 💯👌 if you want to apologize, just say sorry and mean it. no need to add anything to make the other person feel bad for being frustated when you are the one who hurt them. #realtalk#quotes@quietworld🍃
@QuietWorld · Post #6972 · 25.11.2019 г., 12:53
"Sometimes life doesn't give you what you want, not because you don't deserve it, but because you deserve so much more." #realtalk#motivation@quietworld
Hashtags
@QuietWorld · Post #6991 · 29.11.2019 г., 12:28
"Goodbye is only for those who like their eyes, because for those who like their hearts and souls, there is no such thing as separation." #love#realtalk@quietworld
@QuietWorld · Post #6966 · 24.11.2019 г., 05:35
💯 #realtalk#truth @quietworld🍃
@QuietWorld · Post #6573 · 13.08.2019 г., 06:49
#realtalk#truth@quietworld🍃
@QuietWorld · Post #6460 · 15.05.2019 г., 04:50
#truth#realtalk @quietworld🍃
@QuietWorld · Post #6457 · 14.05.2019 г., 11:23
I appreciate honesty over everything. If you tell me what it is upfront and give me the option to take it or leave it, I respect that. #truth#realtalk@quietworld🍃
@QuietWorld · Post #6962 · 23.11.2019 г., 14:43
#love#reminder#realtalk @quietworld🍃
@QuietWorld · Post #7073 · 14.12.2019 г., 07:06
older than us, we were 22 when we were having this conversation), and two of my most observant friends talk about the self-conflict each of our coursemates had as they enter 21. & I wouldn't notice the 'pattern' if my friends didn't point out. & suddenly one of my friends started sharing his moment of depression and how he coped with it. & somehow at that moment I felt like my friends actually noticed my changed behaviour and suspected that there's something bothering my mind and they were actually trying to help me out by asking me out, being with me, spending time with me. & I'm glad that they are wise to not help me out by asking me what's wrong because if they ask me what's wrong , I don't even know what is wrong with me and me realizing that there's something off with me and not knowing what it is gonna make me feel so much wrong 😂 and I'm glad they didn't ask me that question. Instead, they just help me out by being there. I'm so grateful and blessed to have friends like them. I was grateful and I am more grateful now, because I just realized that there's actually so much more blessings I had that I haven't notice more in details until now. :') Anyway this is such a long post I didn't even have any idea that it was gonna be this long I wondered if anyone would even read it from beginning till the end, so here's a quick question, did I managed to keep you engaged from the beginning to the end of this post? 😅 #thoughts#afterthoughts#realtalk#poll @quietworld🍃
@QuietWorld · Post #6651 · 06.10.2019 г., 15:00
You do not miss the person; you miss the feelings you experienced with them. If you were to somehow receive similar feelings, you would dismiss & forget that person. #quotes#love#relationship#realtalk @quietworld🍃