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

Резултати

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

Пребарај: #sys

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

@proanalysistrader · Post #28564 · 20.03.2025 г., 14:07

#SYS/USDT analysis : The #SYS is currently in a downtrend, trading below the 200EMA. The price is testing resistance at the current level, and it's expected to decline further from there, potentially testing lower price levels. TF : 2h Entry : $0.0487 Target : $0.0410 SL : $0.0522

Hashtags

Pro Analysis

@proanalysistrader · Post #28452 · 05.02.2025 г., 15:07

#SYS/USDT analysis : #SYS is currently in a correction phase, experiencing a retracement toward the 200 EMA. This presents a potential long trade opportunity on lower time frame. Look for price to retrace and test the support zone for a long entry. TF : 30min Entry : $0.0676 Target : $0.0735 SL : $0.0644

Hashtags

Pro Analysis

@proanalysistrader · Post #28091 · 30.10.2024 г., 05:25

#SYS/USDT analysis : #SYS is currently consolidating sideways within the support zone and is expected to rebound from this level, potentially testing previous highs. It is advisable to wait for a pullback to establish a long position. TF : 1D Entry : $0.0964 Target : $0.1257 SL : $0.0822

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9176 · 16.01.2026 г., 17:01

#SYS👈 https://www.binance.com/en/trade/SYS_BTC Buying rate 21-23 👀sitting near bottom Sell 🤑 29 🤑 32 🤑 35 🚀 40 & above Bullish above 20 🔼 Death Zone below 19 🔽

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9151 · 08.07.2025 г., 17:45

#SYS👈 https://www.binance.com/en/trade/SYS_BTC Buying rate 31-33 👀sitting near bottom Sell 🤑 36 🤑 36-39 🤑 39-42 🚀 42-50 & above Bullish above 29 🔼 Death Zone below 29🔽 Powered by @cryptoProfitCoach

Hashtags

Fed. Russian Insiders ®

@FedRussianInsidersVip4Free · Post #6763 · 25.10.2025 г., 14:14

BUYING $SYS HERE Exchange: Binance / Binance Futures Leverage: 3-5x Breakout confirmed. Market conditions are perfect for an easy 100-200% move on #SYS Targets: OPEN SL: Below 0.0254

Hashtags

Fed. Russian Insiders ®

@FedRussianInsidersVip4Free · Post #6715 · 13.10.2025 г., 12:01

LONGING $SYS HERE Exchange: Binance / Binance Futures Leverage: 5x Breakout confirmed after bottoming out. #SYS is ready to reach new highs, easy 3-5x move🐋 Targets: 0.048 - 0.052 - 0.060 - 0.074 - 0.092 - 0.110 - 0.132 - 0.151 - OPEN SL: Below 0.031

Hashtags

Binance Big Pump Signals Future trade

@binancebigpumpsignalsfuture · Post #2080 · 26.02.2022 г., 19:17

#SYS result 2 nd target achieved in just 11 hours ✅✅ One more huge quick profit 17% +🤑💰🤑 👉 Still thinking? The more you wait more you lose profit ☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal

Hashtags

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