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

Резултати

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

Пребарај: #carboncredits

当前筛选 #carboncredits清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4039 · 31.01.2025 г., 13:00

Latest VC Funding Round Highlights 🔹Oxyle: $16M for PFAS destruction solutions. Learn more 🔹AirBaltic: Secured $14.62M. Learn more 🔹Geniova: Raises $13.53M for aligner technology. Learn more 🔹HEXANA: $12.91M for modular nuclear reactors. Learn more 🔹OCELL: $10.44M to support carbon credits. Learn more 🔹Pixion Games: $12.40M for competitive gaming. Learn more 🔹Pod: Raised $10M for Web3 enhancements. Learn more 🔹Canvas: $10M for AI-driven CAD modeling. Learn more 🔹Cedar Money: $9.90M simplifying African payments. Learn more 🔹1st Commercial Credit: $7M for financing solutions. Learn more Stay updated with the latest in venture capital! #VC#Funding#Tech#Nuclear#Gaming#Web3#AI#Finance#Payments#CarbonCredits

Crypto Fight || News 🚀

@cryptofightnews · Post #3075 · 09.11.2025 г., 14:39

## EDENA Project ### 📊 Core Information: What is EDENA? EDENA is a government-approved Security Token Offering (STO) platform that tokenizes real-world assets like carbon credits and real estate. We make institutional-grade investments accessible from just $10, not millions. EDENA Token Utility: EDENA tokens are the exclusive payment currency for all STO investments on our exchanges. Just like you need USDT for crypto trading, you need EDENA to invest in tokenized real-world assets. As more assets get tokenized and trading volume grows, EDENA token demand increases naturally - this isn't speculation, it's real utility driven by actual usage. Key Facts: - Market Cap: $5 Billion (Top 1% of all cryptocurrencies) - Government Partners: Multiple countries, primarily Indonesia & Egypt - Current Exchanges: Indodax, BingX, Coinstore + Major global exchanges coming soon - Title Sponsor: Web3 Week Asia 2025 ### 🚀 Growth Trajectory: Current (2025): - Listed on major exchanges globally - Government partnerships in multiple countries - $5B market cap milestone Next 6-12 Months: - Indonesia STO Exchange - Q4 2025 launch in preparation (270M people need EDENA to invest) - Egypt STO Exchange - Q1 2026 launch in preparation (100M+ MENA users need EDENA) - Multiple real estate products in preparation, first being a $250M completed complex - Every STO transaction = EDENA demand - Target: 10+ exchange listings 2026 Vision: - $10B+ assets tokenized = Billions in EDENA transaction volume - Operations in 10+ countries = Millions of users needing EDENA - Leading global RWA platform 🎯 Key Messages: 1. "EDENA = Your payment gateway to trillion-dollar markets" 2. "Not speculation - real utility with mandatory usage" 3. "Every carbon credit investment needs EDENA" 4. "Every real estate investment needs EDENA" ### 📱 Hashtags: #EDENA#STO#RWA#CarbonCredits#RealWorldAssets#Blockchain#RealUtility#Indonesia#ASEAN#Egypt#MENA#AFRICA ### 🔗 Official Links: - Website: edenatoken.com - Twitter: @EdenaOfficial - Telegram Channel: t.me/edenaofficial - Telegram Group: t.me/EdenaCommunity