@venturevillagewall · Post #3632 · 21.12.2024 г., 10:23
DuckChain Raises $5M DuckChain successfully secured $5M in funding, with the round closing on December 20, 2024. For more details, visit DuckChain. #DuckChain#Funding#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
Пребарај: #duckchain
@venturevillagewall · Post #3632 · 21.12.2024 г., 10:23
DuckChain Raises $5M DuckChain successfully secured $5M in funding, with the round closing on December 20, 2024. For more details, visit DuckChain. #DuckChain#Funding#Crypto
Hashtags
@tonevents_en · Post #968 · 02.11.2024 г., 11:55
🚜First farming pool from Tomarket While we are all waiting for the $TOMA listing and watching the price on the TOMA/USDT premarket, the team launched a farming pool with its first partner — DuckChain. About farming $DUCK Points By staking $TOMA in the Farming Pool, you will secure a spot in the TGE #DuckChain airdrop and will farm $DUCK Points faster than through their mini-app. Not Bad. 🥚 Collect eggs in DuckChain. After staking, head to DuckChain to start farming eggs — these eggs are rare and valuable, so don't miss your chance. 🍅Stake TOMA in the Tomarket farming pool. Once staked, join DuckChain to collect eggs: ✅Join the DuckChain app ✅Subscribe to DuckChain channel ✅Subscribe to DuckChain on X ⚠️Note: If you have trouble with TOMA distribution, don't worry — there will be plenty of time to join after the team completes the review. Rewards will not be affected by whether you enter the pool early or late. 🧐Does it worth to participate? This is probably just the beginning of the project's journey towards onboarding in #GameFi and #memecoins. If the #Tomarket team is really interested in playing for the long term, they should thank early adopters, for their support — give a fat drop to the first pool. If the community does not support the project, this will probably be the end of it. And our $TOMA will be worth nothing. So it's up to you to decide. #fun#belong#money Farming pool DuckChain 🦆
@centralchanel · Post #15821 · 04.01.2025 г., 20:20
January Listing 🔥 ✅#Nodepay: 6 January ✅#MomoAi: 6 January ✅#Xterio: 8 January ✅#Sidekick : 8 January ✅ $Vertus :13 January ✅#Seed : 15 January ✅#Xcoin : 20 January ✅#Tapswap : 23 January ✅#Wcoin : 25 January ✅#CommunityGaming : 28 January Unofficial Listing ✅#PAWS ✅#UXUY ✅#Yuligo ✅#MemeWar ✅#DuckChain ✅#Celia Stay connected
@venturevillagewall · Post #3599 · 20.12.2024 г., 15:25
DuckChain Raises $5M for Web3 DuckChain, a consumer layer for Web3, successfully secured $5M in funding from notable investors including dao5, Offchain Labs, Kenetic, and others. #DuckChain#Web3#Funding#dao5#OffchainLabs#Kenetic#DWFVentures#OakGroveVentures#SkylandVentures#GeekCartel#GateLabs#PrestoLabs#Camelot#Quantstamp
@venturevillagewall · Post #3600 · 20.12.2024 г., 16:00
DuckChain Secures $5M Funding TON’s consumer layer for Web3 DuckChain has successfully raised $5 million in a funding round with participation from multiple investors including dao5, Offchain Labs, DWF Ventures, and others. #DuckChain#Web3#Funding#TON#dao5#OffchainLabs#DWF#Investors#Ventures#Kenetic#Skyland#GeekCartel#GateLabs#PrestoLabs#Camelot#Quantstamp#Blockchain#Finance#Investment#Technology