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

Резултати

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

Пребарај: #glmr

当前筛选 #glmr清除筛选
Coin Sonar

@CoinSonar · Post #243980 · 18.04.2026 г., 05:29

#GLMR | Volume spike (USDT PAIR) 1111 times the average volume 110.59K USDT traded in 1 min └Selling vol: 76.35K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0152 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243931 · 18.04.2026 г., 02:39

#GLMR | Volume spike (USDT PAIR) 90 times the average volume 134.84K USDT traded in 15 min └Buying vol: 71.39K USDT 🟢 Boost score: 4/10 24h Vol: 143.27K USDT (Binance) Price: 0.0168 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243800 · 17.04.2026 г., 18:00

#GLMR | Volume spike (USDT PAIR) 86 times the average volume 128.45K USDT traded in 15 min └Buying vol: 84.37K USDT 🟢 Boost score: 4/10 24h Vol: 143.27K USDT (Binance) Price: 0.0188 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243697 · 17.04.2026 г., 13:45

#GLMR | Volume spike (USDT PAIR) 86 times the average volume 128.61K USDT traded in 15 min └Buying vol: 66.91K USDT 🟢 Boost score: 5/10 24h Vol: 143.27K USDT (Binance) Price: 0.0193 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243618 · 17.04.2026 г., 11:34

#GLMR | Volume spike (USDT PAIR) 88 times the average volume 132.56K USDT traded in 15 min └Buying vol: 66.84K USDT 🟢 Boost score: 3/10 24h Vol: 143.27K USDT (Binance) Price: 0.0186 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243574 · 17.04.2026 г., 09:34

#GLMR | Volume spike (USDT PAIR) 343 times the average volume 171.02K USDT traded in 5 min └Selling vol: 86.60K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0216 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243505 · 17.04.2026 г., 07:34

#GLMR | Volume spike (USDT PAIR) 504 times the average volume 251.15K USDT traded in 5 min └Selling vol: 143.39K USDT 🔴 Boost score: 1/10 24h Vol: 143.27K USDT (Binance) Price: 0.0181 (-0.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243459 · 17.04.2026 г., 05:34

#GLMR | Volume spike (USDT PAIR) 220 times the average volume 109.66K USDT traded in 5 min └Buying vol: 82.90K USDT 🟢 Boost score: 6/10 24h Vol: 143.27K USDT (Binance) Price: 0.0127 (-0.9% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28498 · 25.02.2025 г., 15:02

#GLMR/USDT analysis : #GLMR is in downtrend trading below 200ema. Price has broken down below support zone it is expected to continue declining. For short entry wait for the price to test the resistance zone. TF : 2h Entry : $0.1186 Target : $0.0940 SL : $0.1332

Hashtags

Pro Analysis

@proanalysistrader · Post #27905 · 05.09.2024 г., 12:58

#GLMR/USDT analysis : #GLMR has broken below the 200 EMA and is currently consolidating sideways near the 200 EMA. The price is expected to reverse from there and continue its bearish momentum to test the previous swing low. TF : 1h Entry : $0.1547 Target : $0.1415 SL : $0.1635

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8947 · 26.12.2023 г., 00:31

#GLMR👈 Call given here Hit 1474 All Target done ✅ 142% safe profit in spot If you invested 1 btc it's now 2.42 btc now 🤑🤑 Signal before pump @ low level Always trade with us for max profit 😊🤑💃Chk pinned to join👀 We are best pump tracker 🤑

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8909 · 05.11.2023 г., 01:16

#GLMR👈 https://www.binance.com/en/trade/GLMR_BTC Buying Zone 610-630 Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its 🚀 Sell 🤑 660-700 🤑 700-750 🤑 750-800 🚀 800- 750 & above Bullish above -600

Hashtags

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