@MEXC_FairPrice_Spreads · Post #886 · 26.01.2026 г., 07:23
#FRANKLIN | 10.33% | SHORT🔴 Last Price: 0.0002328 Fair Price: 0.000211 Max Leverage: 20x Max Size: 48.89$ MEXC Fair Price Spreads
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
Пребарај: #franklin
@MEXC_FairPrice_Spreads · Post #886 · 26.01.2026 г., 07:23
#FRANKLIN | 10.33% | SHORT🔴 Last Price: 0.0002328 Fair Price: 0.000211 Max Leverage: 20x Max Size: 48.89$ MEXC Fair Price Spreads
Hashtags
@MEXC_FairPrice_Spreads · Post #878 · 26.01.2026 г., 05:55
#FRANKLIN | 12.63% | LONG🟢 Last Price: 0.0002235 Fair Price: 0.0002558 Max Leverage: 20x Max Size: 46.94$ MEXC Fair Price Spreads
Hashtags
@emagzinewspars · Post #9331 · 14.10.2025 г., 09:53
#The_Atlantic🇺🇸📕[PDF]⬇️ #November2025 #Monthly_Magazines For learning, for free(dom). @backupofmagazines In this issue, “The Unfinished Revolution,” historians and writers reassess 1776 to explain today. Essays puncture myths about “mad” King George, map the geology of Concord, follow Black Loyalists and a fractured #Franklin family, and ask how to film the past #KenBurns. Profiles of #ElizaSchuyler, #Lincoln and “Rip Van Winkle” show how memory shapes citizenship. Danielle Allen deciphers a lost clue in the Declaration, while Anne Applebaum, David Brooks and George Packer warn that #America’sDemocratic beacon is dimming—and can be rekindled through civic virtue. History reads like a survival manual for the republic.
@CryptoM · Post #65369 · 13.04.2026 г., 02:54
🚀 XRP Spot ETFs See Significant Inflows and Outflows XRP spot ETFs experienced notable financial movements last week, with a net inflow of $11.75 million, according to Odaily. The data, sourced from SoSoValue, covers the trading days from April 6 to April 10 (Eastern Time). The Bitwise ETF XRP led the inflows, attracting $9.5154 million, bringing its historical total net inflow to $388 million. Following this, the Franklin ETF XRPZ saw a weekly net inflow of $2.8987 million, with its historical total reaching $324 million. Conversely, the 21Shares ETF TOXR recorded the highest net outflow, amounting to $661,200, with its historical total net outflow standing at $25.85 million. As of the latest update, the total net asset value of XRP spot ETFs is $968 million, with an ETF net asset ratio of 1.16% compared to XRP's total market capitalization. The cumulative historical net inflow has reached $1.22 billion. #XRP#ETFs#Crypto#Inflow#Outflow#Bitwise#Franklin#21Shares#NetAssetValue#MarketCap