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

Резултати

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

Пребарај: #tru

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

@CoinSonar · Post #243929 · 18.04.2026 г., 02:37

#TRU | Volume spike (USDT PAIR) 413 times the average volume 131.75K USDT traded in 5 min └Selling vol: 82.82K USDT 🔴 Boost score: 1/10 24h Vol: 91.78K USDT (Binance) Price: 0.0052 (-4.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243743 · 17.04.2026 г., 15:33

#TRU | Volume spike (USDT PAIR) 1565 times the average volume 99.76K USDT traded in 1 min └Selling vol: 94.10K USDT 🔴 Boost score: 1/10 24h Vol: 91.78K USDT (Binance) Price: 0.0053 (-4.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243554 · 17.04.2026 г., 09:00

#TRU | Volume spike (USDT PAIR) 2109 times the average volume 134.45K USDT traded in 1 min └Selling vol: 117.50K USDT 🔴 Boost score: 1/10 24h Vol: 91.78K USDT (Binance) Price: 0.0066 (-4.0% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28464 · 11.02.2025 г., 13:03

#TRU/USDT analysis : #TRU is retracing towards the 200 EMA, indicating a potential retest before continuing its bearish momentum. This level offers a good opportunity for a long entry. TF : 2h Entry : $0.0460 Target : $0.0520 SL : $0.0420

Hashtags

Pro Analysis

@proanalysistrader · Post #28409 · 22.01.2025 г., 14:12

#TRU/USDT analysis : #TRU is currently in a downtrend and is expected to maintain its bearish momentum, potentially testing lower price levels. TF : 1H Entry : $0.0713 Target : $0.0606 SL : $0.0782

Hashtags

American Crypto©

@americancryptotrading · Post #27195 · 24.03.2025 г., 14:08

🇺🇸#TRU/USDT is maintaining position above the supportzone on the 3D timeframe👀 Looking for a leg upwards🐃 American Crypto©

Hashtags

Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26645 · 27.12.2025 г., 12:57

✅✅ 55% Profit on #TRU/USDT for our Premium Members on On Binance Futures, Bitget Futures, ByBit USDT, KuCoin Futures, OKX Futures 👆🏻All Profit Targets Successfully Completed 👁‍🗨Contact @primemod to enter the most powerful premium group & make daily gains

Hashtags

Crypto Angels

@cryptoangelsusa · Post #22174 · 28.12.2025 г., 08:16

Binance Futures, BingX Futures, Bitget Futures, BloFin Futures #TRU/USDT All take-profit targets achieved 😎 Profit: 200.7463% 📈 Period: 14 Hours 15 Minutes ⏰

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #10148 · 29.03.2024 г., 17:59

#TRU +143% 🤑💸💰 CoinLegs' unique algorithms give you invaluable insights into the market. Alerts, AI, Algotrade, Algorithms and much more at CoinLegs platform. Now is the time to earn! www.coinlegs.com

Hashtags

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