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

Резултати

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

Пребарај: #payfi

当前筛选 #payfi清除筛选
UXLINK

@uxlink_community · Post #499 · 29.05.2025 г., 06:02

🌍 Top-Up Your Mobile Phone Worldwide with $UXLINK via @CwalletOfficial, our #PayFi ecosystem partner! We support $UXLINK airtime recharge in 42+ countries with a wide range of carriers, making it easier than ever to stay connected wherever you are.🚀🔗 Get started now: https://my.cwallet.com/tools/phonerefills

Hashtags

UXLINK

@uxlink_community · Post #177 · 13.01.2025 г., 03:12

🫡We are thrilled to announce that our early investor- Singapore United Overseas Bank (UOB) Venture Management and Signum Capital Fund, they highly recognise #UXLINK's achievements in 2024 and plans for 2025. UOB Venture will be committed to supporting UXLINK's long-term development, especially in the combination of decentralised finance and traditional finance, #PAYFI and other scenarios, and will invest more resources for joint building! ❤️ It also highly recognised that UXLINK's launch of the first infrastructure dedicated to promoting social growth in the blockchain field - Social Growth Layer.🚀

UXLINK

@uxlink_community · Post #23 · 06.11.2024 г., 02:41

🥳We are thrilled to announce that our investor UOB(Singapore United Overseas Bank 新加坡大华银行) which is a leading bank in Asia and the largest bank in Singapore and Signum Capital Fund will increase investment to #UXLINK and participate in investor staking $UXLINK plan when it is in vesting schedule. ❤️We fully welcome this decision from UOB & Signum Capital Fund which shows the long term support to UXLINK community and ecosystem. We will work with UOB to explore more opportunities like #PayFi (based on social relationships) and other lifestyle scenarios such as food, clothing, housing and transportation. UXLINK will become a super platform that connects Web2 and Web3 in the future and bring a new lifestyle to the world.

UXLINK

@uxlink_community · Post #408 · 10.04.2025 г., 05:10

UXLINK Joins Stanford University’s Future of Digital Currency Initiative (FDCI) 🌐 UXLINK, as the world’s largest social infrastructure and platform, has been dedicated to driving #Web3 mass adoption and growth across the entire industry. Stanford University, a globally leading research institution and the cradle of numerous entrepreneurs, hosts the Future of Digital Currency Initiative (FDCI) under its Computer Science Department. The FDCI explores the emerging role of digital currencies in promoting global financial inclusion—a vision that aligns closely with UXLINK’s mission. UXLINK is honored to become an official member of @Stanford FDCI. UXLINK has introduced innovative products such as "link-to-earn," "social #PayFi , “social-native blockchain for growth—UXLINK OneChain" all aimed at enhancing trust and accelerating mass adoption. But what lies behind these efforts? Financial inclusion—using digital currencies to provide universal access to transparent, fair, and efficient payment and market mechanisms. We envision a world where unbanked residents in Africa can access banking services through technology; where people in smaller or less economically powerful countries are shielded from currency fluctuations, preserving their already limited wealth; and where anyone, without needing a local bank account or cash, can buy a burger anytime, anywhere with a simple click. #UXLINK’s strategic partnership with Stanford’s FDCI reflects our unwavering commitment to sustained investment and focus on R&D to address these challenges head-on.🚀

UXLINK

@uxlink_community · Post #520 · 16.06.2025 г., 01:12

🫡The task 3 of #UXLINKSeason4 - Social Club Card Phase 2 SOLD OUT in just 24 hours! 🚀 Thanks for the trust and support from our 🇰🇷South Korea, 🇯🇵Japan, 🇮🇩Indonesia and 🇻🇳Vietnam communities! Due to some technical issue, there are 657.9K USDT over sale, we will do refund in 2 working days and will offer some $UXLINK to these users as a token of gratitude❤️. There are still BIG rewards for Influencer Starlink & #PayFi UXLINK FujiCard tasks👉https://dapp.uxlink.io/season4

UXLINK

@uxlink_community · Post #32 · 11.11.2024 г., 04:32

🌻Good morning fams, our African community is building some meaningful greatness for the world, which is “Crypto PayFi in Central Africa". This small beginnings may come great things: we are testing PayFi in Cameroon, Central Africa. 😕Real world challenges are obvious: 1. Local currency: Central African CFA Franc, fluctuated +/- 20%. 2. Multiple currencies: Franc, USD and others. 3. 30% adults unbanked. You can image how crypto #payfi can solve above challenges, and #web3#social definitely is the best infrastructure for PayFi. Social+Payfi would be the true LINK of Web3 and real-world scenarios. UXLINK will support our global community use Social Growth Layer and blockchain/ crypto technology to solve real life problems.

UXLINK

@uxlink_community · Post #694 · 13.10.2025 г., 08:54

💳 UXLINK FujiPay Update FujiPay now supports USDT top-up & spending! 🚀 Despite recent market volatility and security incidents, both FujiPay and cardholders remain unaffected — all assets are safely stored in self-custody wallets, fully owned and controlled by users. Every transaction earns you L-Score points, letting you join the UXLINK Season 5 Airdrop and claim $UXLINK on ETH mainnet. 👉 Join now: https://dapp.uxlink.io/card More exciting FujiPay activities coming soon — stay tuned! 🔥 #UXLINK#FujiPay#PayFi

UXLINK

@uxlink_community · Post #505 · 03.06.2025 г., 02:36

🚀 UXLINK May Update & Phase 2 Strategy Reserve! Big leaps in AI, PayFi & partnerships: ✅@XerpaAI AI Growth Agent (AGA), the world’s first growth-focused agent, now testing in #Web3 . ✅ More #PayFi partners enable $UXLINK recharge/spend; FujiCard tests KYC & use cases globally. ✅ New partners join our AI-powered Web3 ecosystem, bringing airdrops & benefits to the community. Per plan, 10-20% of May profits (~$150K) will boost our $BTC+ $UXLINK strategic reserve. 💪#Bitcoin#UXLINK

UXLINK

@uxlink_community · Post #404 · 09.04.2025 г., 05:48

Tough times? #UXLINK is crushing it—delivering STRONG GROWTH and SOLID PROFITS in Q1 2025! 💪 Our ecosystem’s unstoppable: user base booming, profits soaring, all while keeping the community front and center. Our ecosystem is ALL about GROWTH—serving both end users with seamless adoption & business-end projects with killer infra, tools, and traffic. As long as the industry booms, the hunger for growth STAYS! We’re already making 10+ millions net profit, and expect to achieve 20-30 millions in 2025 - growing strong, reinvesting hard, and riding a positive loop! 💰 With #PayFi , next-level AI tools, and more in the works, profits are about to SKYROCKET! 🚀 We’re relentless—pushing R&D and innovation to be THE go-to for industry growth! #Web3#KeepBuilding

UXLINK

@uxlink_community · Post #477 · 13.05.2025 г., 02:19

🌍 Spend $UXLINK Globally with @CwalletOfficial! Your crypto isn’t just an asset—it’s your everyday currency. 💰 We’re expanding the #UXLINK#PayFi ecosystem with @CwalletOfficial and global partners to empower 1.4M+ $UXLINK holders and 50M+ registered users to use crypto for daily spending—from groceries to global transactions. No borders, no hassle. 🌐💳 This is the future of finance, built for your lifestyle. Join the movement to make crypto living seamless. ❤️ #Web3#payment

UXLINK

@uxlink_community · Post #484 · 15.05.2025 г., 01:34

🚀 Animoca Brands joins as UXLINK’s strategic investor, following @AnimocaVentures! We are thrilled to welcome @animocabrands! Our AI Growth Agent is revolutionizing Web3 social—soon, hundreds of millions of social accounts and corporate accounts will gain from decentralized value exchange.” 🌐 With #UXLINK#PayFi, we’re bridging crypto & real life, creating a seamless Web3+Web2 lifestyle for global users. #Web3#AI#StrategicPartnership#PayFi

UXLINK

@uxlink_community · Post #246 · 07.02.2025 г., 08:57

🫡Glad to be partnership with @AEON_Community, a leading #WEB3 payment protocol. $UXLINK will be supported by #AEON Pay and tens of millions #UXLINKfams could use their token to make in-store payment in real world in dozens of countries especially in South East Asia. UXLINK FujiPay/ FujiCard will also collab with AEON to build #PayFi ecosystem together and provides a seamless bridge between crypto assets and real-world applications, empowering users with secure, inclusive, and rewarding financial services. You can buy a pizza with your crypto assets by a simple swipe🥳.

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