TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

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

Пребарај: #sd

当前筛选 #sd清除筛选
American Crypto©

@americancryptotrading · Post #27617 · 11.05.2026 г., 13:43

🇺🇸#SD Volumes are huge🔥 Bullish rally is coming✈️ Stader isn’t trying to be another hype project. They’re building actual staking infrastructure across multiple chains👀 $SD American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27601 · 26.04.2026 г., 14:16

🇺🇸#SD accumulating at the huge volumes🔥 Bullish🐃 People chase hype. Smart money looks at structure. Stader (SD) has: less supply + real revenue flow That matters 🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27504 · 15.01.2026 г., 13:01

🇺🇸#SD Cyclical pump is playing✈️ Do not miss $SD while it's still at the dip🔥 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27494 · 06.01.2026 г., 13:50

🇺🇸#SD keeps to its Cycle✔️ Bear Trend is over❌Bullish Trend Started✅ MACD crosses the mid-lne as well as its signal line crossed for bullish🐃 Stader keeps staking flexible instead of locking funds. At the same time, $SD completed its buyback just yesterday🧱 https://etherscan.io/address/0xefe40ff167a89ce3babdad161d41d798ca7116b2#tokentxns American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27485 · 29.12.2025 г., 12:34

🇺🇸#SD This chart keeps repeating the same story. Sharp sell-off → momentum drains → aggressive upside leg follows. Price is now sitting right at that transition point again. 🧩 Downside move looks complete, and the curve is starting to turn — this is where new trends are born, not extended lower. 📉➡️📈 If history rhymes, the next phase is a strong expansion move. Buybacks coming soon 🔥 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27453 · 28.11.2025 г., 13:02

🇺🇸#SD Price has completed another clean rounded bottom formation at the lower boundary of the long-term structure. The reaction from this zone is strong and mirrors previous cycle reversals. 🔥 Each prior rounded bottom led to a powerful upside expansion, and the current setup is replicating the same rhythm with high precision. The structure shows clear exhaustion of sellers and a decisive shift in momentum. ⚡️ With the pattern repeating and demand stepping in aggressively, price is now positioned for a sustained bullish continuation toward higher macro levels. The next leg up is not just likely—it’s expected. 🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27371 · 10.09.2025 г., 15:24

🇺🇸#SD/USDT Bullish Flag on weekly🐃 Looking for the retest of the MajorSupplyZone and more upside in case of a breakout🚀 Stader fundamentals keep improving — scaling TVL, expanding volumes, and consistent demand from both LST and Cabbage. This aligns with the key catalyst → buybacks roll out next week. American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27217 · 15.04.2025 г., 13:28

🇺🇸#SD/USDT Good recovery on $SD ☝️ Once we are back above the red support, send it✈️ Fundamentals: Stader released cabbage (sign for waitlist to be the first to try) + 500k coins bought from the market😎 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27190 · 20.03.2025 г., 11:31

🇺🇸#SD/USDT Falling wedge below the resistance zone🧐 Expecting a retest of the one and breakout📈 Much Awaited Stader Quarterly Buyback happening this week - Add the fact there are no unlocks after March🔥 $SD is going full deflationary! American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27089 · 19.12.2024 г., 15:11

🇺🇸#SD/USDT Low + Higher Low We are going to break that resistance🚀 $750mln in TVL New product cabbage is coming out + Binance List added $SD American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27065 · 28.11.2024 г., 15:41

🇺🇸#SD/USDT We got a fakeout below the symm. triangle and now breaking out of the one📈 Whitepaper will be released at 4th December | $SD is only $50mln MC still early🔥 American Crypto©

Hashtags

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4720 · 02.09.2024 г., 13:29

#SD Accumulating structure remains unchanged️ I keep accumulating! Stader buybacks 286.2k SD ($150k) off CEXs - at this rate almost 3.5% circulating supply annualised will be bought from the market BULL️

Hashtags

123•••1011
ПретходнаСтраница 1 од 11Следна