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

Резултати

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

Пребарај: #sfp

当前筛选 #sfp清除筛选
Pro Analysis

@proanalysistrader · Post #28218 · 17.11.2024 г., 11:45

#SFP/USDT analysis : #SFP has broken down and retested the previous support zone, which is now acting as resistance. The price is expected to retest this zone and continue to decline further, potentially testing lower levels. TF : 2H Entry : $0.6775 Target : $0.6232 SL : $0.7041

Hashtags

Pro Analysis

@proanalysistrader · Post #28063 · 25.10.2024 г., 06:39

#SFP/USDT analysis : #SFP is in a downtrend, consistently making lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is currently facing rejection at the 200 EMA and is expected to decline further, potentially testing lower levels. TF : 4H Entry : $0.7145 Target : $0.6718 SL : $0.7409

Hashtags

American Crypto©

@americancryptotrading · Post #27100 · 28.12.2024 г., 13:56

🇺🇸#SFP/USDT is trading above the symmetricaltriangle pattern on the weekly chart🧐 Send it📈 American Crypto©

Hashtags

Crypto Angels

@cryptoangelsusa · Post #21899 · 02.11.2025 г., 15:05

Binance Futures, Bitget Futures, ByBit USDT, KuCoin Futures, OKX Futures #SFP/USDT Take-Profit target 2 ✅ Profit: 29.9145% 📈 Period: 1 Days 3 Hours 44 Minutes ⏰

Hashtags

Alphavave Traders ️️️

@alphavave · Post #3181 · 28.02.2026 г., 03:56

🔒#SFPdelivered a mind-blowing 3,140% profit within 6 days! 🤯 That’s 3️⃣1️⃣🔤 return on your money 💰 💼 $50💰 would return $100💵 $50 💰 would return $585 💲 $50💰 would return $1,570💰 If you used 75x for this signal via Binance, that's a incredible1,175% profit at the 1️⃣ 🔠 🔠target point💰 That's about as good as it gets! With over 5 years of trading experience, we see these moves comingand there’s more on the way-don’t miss out on the next big wins! 🚀🚀 Want to stay ahead of the game? Take action now and change your life💯 ⚡️LAST SPOT AVAILABLE AT 60% OFF!⚡️ ✅Monthly access is now just $70 (originally $200) ✅6-Month access is now just $180 (originally $500) ✅Lifetime access is now just $500 💵 (originally $1250) t.me/Kevindexter

Hashtags

Crypto

@signal_bitcoins · Post #2478 · 23.01.2024 г., 10:31

🔐#SFP has a bullish channel on 12H Time frame, we expect a good pump until the ceiling of this pattern if price saved the bottom..👀 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

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