@TFGames · Post #2102 · 05.02.2024 г., 16:05
#RUMBLE#BEANS#GAMES https://testflight.apple.com/join/L8E6pwG8
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
Пребарај: #rumble
@TFGames · Post #2102 · 05.02.2024 г., 16:05
#RUMBLE#BEANS#GAMES https://testflight.apple.com/join/L8E6pwG8
@TFGames · Post #2171 · 16.02.2024 г., 19:06
#RUMBLE#KONG#LEAGUE#GAMES https://testflight.apple.com/join/FKHsFUMi
@WangZhuanZhan · Post #34162 · 18.10.2024 г., 07:56
H-h红h番f区q - 红番区 紅番區 (1995) (普通话) 直达链接:https://pan.quark.cn/s/a48ada7eb202 #红番区#紅番區 #Rumble in the Bronx #Red Bronx #Hung faan keoi 链接:https://link3.cc/sf_com #电影#喜剧#香港#90年代
@WangZhuanZhan · Post #34161 · 18.10.2024 г., 07:48
H-h红h番f区q - 红番区 紅番區 (1995) (中字) 直达链接:https://pan.quark.cn/s/0b56159bf386 #红番区#紅番區 #Rumble in the Bronx #Red Bronx #Hung faan keoi 链接:https://link3.cc/sf_com #电影#喜剧#香港#90年代
@WangZhuanZhan · Post #34160 · 18.10.2024 г., 07:44
H-h红h番f区q- 红番区 紅番區 (1995) (粤语) 直达链接:https://pan.quark.cn/s/a8ee2e49df77 #红番区#紅番區 #Rumble in the Bronx #Red Bronx #Hung faan keoi 链接:https://link3.cc/sf_com #电影#喜剧#香港#90年代
@venturevillagewall · Post #3967 · 24.01.2025 г., 04:00
Rumble Launches Own Bitcoin Wallet 🟠 Rumble announces a new #Bitcoin wallet for creators to facilitate direct transactions on the platform. In South Korea, Bithumb has introduced AERO and SOLV trading pairs with Korean won. SOLV supports one of the largest Bitcoin staking protocols. Read more #Bitcoin#Crypto#VC#Rumble#Bithumb#AERO#SOLV#Staking#SouthKorea
@venturevillagewall · Post #3680 · 24.12.2024 г., 08:10
Investments Surge in Innovative Platforms A startup has raised nearly $50 million after seven years of self-funding, initiating a trend of significant investment in platforms that facilitate companies selling third-party services. Notably, similar platforms across various sectors have also attracted large funding this year, signaling a ripe market for investment in this area. In addition, recent reports highlight key developments in the tech sector, such as a sharp decline in YouTube traffic in Russia, the purchase of advertising services by ‘Avito’ and T2, and the closure of electric aircraft startup Lilium after failing to secure funding. Moreover, European AI startups have attracted $13.7 billion in venture capital this year, comprising 25% of the continent's VC funding. Read more about these developments here: https://fastfounder.ru/takaja-shema-raboty-rezko-stala-vostrebovannoj/ #Startup#Investment#Funding#Platforms#AI#Tech#YouTube#AdTech#Lilium#VentureCapital#Ethereum#Tether#Rumble#Advertising#MarketTrends#Growth#FinTech#Crypto#Inflow#Development#EuropeanMarket
@venturevillagewall · Post #3824 · 08.01.2025 г., 22:00
Cuban Prefers Bitcoin Over Gold in Crisis Billionaire Mark Cuban states he prefers holding Bitcoin over gold in economic downturns, citing higher value potential. In Q4 2024, MicroStrategy purchased 194,180 BTC. Companies like KULR Technology, Rumble, and Genius Group are also adding Bitcoin to their balance sheets. Meanwhile, Do Kwon faces trial in 2026 for TerraUSD's $40 billion collapse. Additionally, 50 million USDC was burned at USDC Treasury. Analysts from Fidelity Digital Assets predict significant Bitcoin growth in 2025, potentially driven by countries accumulating Bitcoin as strategic reserves. #Bitcoin#Crypto#VC#MarkCuban#MicroStrategy#KULR#Rumble#GeniusGroup#DoKwon#TerraUSD#USDC#Fidelity#ETB#DigitalAssets#EconomicCrisis#Forecast#Cryptocurrency
@venturevillagewall · Post #3676 · 23.12.2024 г., 16:00
Funding Boosts RWA and DeFi Ventures Usual Labs secures $10M in Series A funding led by Binance Labs and Kraken Ventures. EYWA, a cross-chain liquidity protocol, attracts $8.5M from major investors including Curve's founder. Core product CrossCurve surpasses $21M in TVL. Other funding highlights include Avalon Labs raising $10M, Valhalla $1.5M, Rumble $775M, and Allo $2M. Notably, CryptoQuant indicates substantial Bitcoin accumulation by ETFs and institutions, now holding 31% of circulating supply. 📈 #Funding#Stablecoin#DeFi#EYWA#Liquidity#CrossChain#Investors#AvalonLabs#Valhalla#Rumble#Allo#CryptoQuant#Binance#Kraken#TVL#Bitcoin#ETF#Curve#Trading#Tokenization