@cryptobull_360 · Post #48849 · 20.03.2026 г., 05:31
🚀 Mantle's lending and borrowing market has hit a new all-time high of $1.35B, ranking #3. #crypto
Hashtags
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
Пребарај: #crypto
@cryptobull_360 · Post #48849 · 20.03.2026 г., 05:31
🚀 Mantle's lending and borrowing market has hit a new all-time high of $1.35B, ranking #3. #crypto
Hashtags
@cryptoangelsusa · Post #22048 · 22.11.2025 г., 04:18
📊Just hopped off a call with the top TA guys on X. Most of them shorted the top like us, but they held onto their spot bags because they weren’t confident about the #crypto crash. Meanwhile, we sold all our spot bag at $121k. Now we are waiting for the bottom to deploy.
Hashtags
@forexsignalstrialgroup · Post #18458 · 17.04.2026 г., 08:25
Crypto Signals News Forecast Starting 17th April 2026 https://www.fxpremiere.com/crypto-signals-news-forecast-starting-17th-april-2026/#crypto
Hashtags
@forexsignalstrialgroup · Post #18327 · 03.04.2026 г., 08:32
Crypto Signals Live News Today – 3rd April 2026 https://www.fxpremiere.com/crypto-signals-live-news-today-3rd-april-2026/#crypto
Hashtags
@forexsignalstrialgroup · Post #18314 · 01.04.2026 г., 09:46
Live Crypto Signals News Today – Bitcoin, Ethereum & Altcoins | April 1, 2026 https://lnkd.in/d7Bw5_ij#crypto
Hashtags
@forexsignalstrialgroup · Post #18296 · 30.03.2026 г., 08:57
Live Crypto Signals News Today – Bitcoin, Ethereum & Altcoins | March 30, 2026 https://www.fxpremiere.com/live-crypto-signals-news-today-bitcoin-ethereum-altcoins-march-30-2026/#crypto
Hashtags
@forexsignalstrialgroup · Post #18260 · 26.03.2026 г., 08:59
Live Crypto Signals News Today – Bitcoin, Ethereum & Altcoins | March 26, 2026 https://www.fxpremiere.com/live-crypto-signals-news-today-bitcoin-ethereum-altcoins-march-26-2026/#crypto Make Money Online - FxPremiere Group
Hashtags
@forexsignalstrialgroup · Post #18240 · 25.03.2026 г., 11:13
Live Crypto Signals News Today – Bitcoin, Ethereum & Altcoins | March 25, 2026 https://www.fxpremiere.com/live-crypto-signals-news-today-bitcoin-ethereum-altcoins-march-25-2026/#Crypto
Hashtags
@forexsignalstrialgroup · Post #18227 · 24.03.2026 г., 10:18
Live Crypto News Today – Bitcoin, Ethereum & Altcoins | March 24, 2026 https://www.fxpremiere.com/live-crypto-news-today-bitcoin-ethereum-altcoins-march-24-2026/#crypto
Hashtags
@forexsignalstrialgroup · Post #18202 · 20.03.2026 г., 11:40
Live Crypto Signals News Today – March 20, 2026 https://www.fxpremiere.com/live-crypto-signals-news-today-march-20-2026/#crypto
Hashtags
@sipangE · Post #18149 · 01.12.2024 г., 03:01
[속보] 박찬대 "가상자산 과세 2년 유예 동의키로" #Crypto
Hashtags
@forexsignalstrialgroup · Post #18088 · 09.03.2026 г., 09:21
Live Crypto News Today: Bitcoin, Ethereum and Altcoins Trade Under Pressure as Oil Shock, USD Strength and War Headlines Hit Risk Assets 9th March 2026 https://www.fxpremiere.com/live-crypto-news-today-bitcoin-ethereum-and-altcoins-trade-under-pressure-as-oil-shock-usd-strength-and-war-headlines-hit-risk-assets-9th-march-2026/#crypto
Hashtags