@social_justice_watch · Post #18172 · 17.07.2023 г., 18:44
Thickfurred<[email protected]>: I feel this is so true, it hurts. #depression#anxiety https://toot.community/@Thickfurred/110730431025490534
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #depression
@social_justice_watch · Post #18172 · 17.07.2023 г., 18:44
Thickfurred<[email protected]>: I feel this is so true, it hurts. #depression#anxiety https://toot.community/@Thickfurred/110730431025490534
Hashtags
@wall_amv · Post #9122 · 05.06.2024 г., 16:53
Uniformity Cycle Anime: Another, Tenki no ko, Zom 100, Kotonoha no niwa. Music: Liana Flores - Rises the Moon #Amv #Amv_Mix #Mix #SAD #Depression #Sentimental #Drama #Full_HD #AnimWorld @Wall_Amv
@perspectiveix · Post #1285 · 22.05.2018 г., 09:30
🏥How heavy use of social media is linked to mental illness May 20th marked the end of “#MentalHealth awareness week”, a campaign run by the Mental Health Foundation, a British charity. Roughly a quarter of British adults have been diagnosed at some point with a psychiatric disorder, costing the economy an estimated 4.5% of GDP per year. Such illnesses have many causes, but a growing body of research demonstrates that in young people they are linked with heavy consumption of #SocialMedia. A survey by the Royal Society for Public #Health found that Britons aged 14-24 believe #Facebook, #Instagram, #Snapchat and #Twitter have detrimental effects on their wellbeing. They said that these social networks gave them scope for self-expression and community-building, but exacerbated anxiety and #depression. 🚀@PerspectiveIX 🔗prs.pctvix.co/2ISIKvh
@googlefactss · Post #40507 · 08.01.2026 г., 19:00
Vitamin D is made in the skin when sunlight touches it. This vitamin helps the brain stay healthy and can stop feelings of sadness or depression. Taking supplements or getting sunlight can boost vitamin D and improve mood. 🌞🧠 [Source1] [Source2] @googlefactss#VitaminD#MentalHealth#Depression#Sunlight#Supplements
@stas_refund · Post #13351 · 09.04.2026 г., 19:33
#soundcloud#niche#nichetok#depression#ootd 💧 Спонсировано @rainbetcom
@dreamsgallerys · Post #1587 · 31.10.2023 г., 12:17
By Voodoont #voodoont #арт#art#ai#girl#sad#rain#depression#rose#beauty
@googlefactss · Post #40654 · 13.02.2026 г., 15:04
In Japan, a marketing campaign called 'kokoro no kaze' (a cold of the soul) was used to promote antidepressants, increasing sales sixfold. It falsely suggested depression was simple and temporary like a cold, hiding the true treatment needs. This led to over-medication and potential harm. Now, companies focus on bipolar disorder, risking similar issues. 🚨💊 [Read more] @googlefactss #MentalHealth#Japan#Pharmaceuticals#Depression#Bipolar#HealthRisks
@ThemesM8 · Post #273 · 19.02.2022 г., 07:50
https://t.me/addtheme/BlueGirl_ThemesM8 🌙@ThemesM8✨ #dark#android#desktop#girl#night#blue#deep#dep#depression#sad#moon#sunrise#dawn#love#girly#oled#amoled