@scorpionx_co · Post #1192 · 11.01.2025 г., 12:55
📇 10 بلاک چین برتر از نظر درآمد در سال 2024. #Blockchain @ScorpionX_Co
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
Пребарај: #blockchain
@scorpionx_co · Post #1192 · 11.01.2025 г., 12:55
📇 10 بلاک چین برتر از نظر درآمد در سال 2024. #Blockchain @ScorpionX_Co
Hashtags
@producTICvidad · Post #537 · 05.09.2021 г., 13:12
Algo de #blockchain para empezar el día 👇🏽👇🏽 El estratega senior de Bloomberg llama a Bitcoin un activo de reserva global en camino a los USD 100,000 Tras una corrección masiva, los activos digitales liderados por Bitcoin y Ethereum están en camino de alcanzar nuevos picos, según un nuevo informe de Bloomberg https://ct.com/9wwt
Hashtags
@djangoproject · Post #502 · 14.11.2017 г., 17:02
https://medium.freecodecamp.org/from-what-is-blockchain-to-building-a-blockchain-within-an-hour-4e738efc819d From “What is Blockchain?” to building a #blockchain in less than an hour.
Hashtags
@immunefi · Post #467 · 21.06.2022 г., 18:37
If you still haven’t read our ultimate guide to hacking #Blockchain, now is the perfect time to do it 🤓 Let us know what you think 💭 https://medium.com/immunefi/hacking-the-blockchain-an-ultimate-guide-4f34b33c6e8b
Hashtags
@producTICvidad · Post #333 · 25.02.2021 г., 19:42
Para qué sirve #blockchain? En el 2020 se han presentado importantes noticias en la implementación de proyectos blockchain. Uno de los pilotos más importantes para el Foro Económico Mundial (WEF en inglés) tienen como protagonista a Colombia, en donde ya menciona los proyectos específicos para la gestión del Programa de Alimentación Escolar - PAE, en el marco de la iniciativa liderada por la Procuraduría General de la Nación, en asocio con el Centro de la Cuarta Revolución Industrial de Colombia y otros actores. Este proyecto busca mitigar la corrupción en dicho programa ofreciendo transparencia en los procesos, cuidando así los recursos públicos y el bienestar de los beneficiarios.
Hashtags
@Dwflabs · Post #32 · 15.09.2022 г., 11:06
DWF Labs is pleased to announce our strategic secondary market investment into Conflux. (https://twitter.com/Conflux_Network) Conflux is the only regulatory-compliant permissionless Layer 1 blockchain in China. The #blockchain helps to connect decentralized economies across borders and protocols. Conflux provides a fast, secure, and scalable blockchain environment through the Tree-Graph consensus algorithm. This unique consensus algorithm enables parallel processing of blocks and transactions to make the blockchain fast, secure, and scalable with low transaction fees.
Hashtags
@venomfoundationofficial · Post #30 · 21.02.2023 г., 14:02
Venom is happy to announce its partnership with Hacken. Venom & Hacken will join forces to increase the security around blockchain adoption. Together, we will work towards a safer and more accessible #blockchain ecosystem for everyone.
Hashtags
@repo_science · Post #3234 · 27.05.2023 г., 18:47
#python#blockchain 💰 Learn about Python and Blockchain: The Complete Guide! Blockchain technology explained. Cryptocurrency, cryptography, transactions & programming in the best Blockchain course 🗣️: Mammoth Interactive, John Bura 🔗Link ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@tonlines · Post #7615 · 25.11.2025 г., 13:30
⚡️The Daily TON: Challenges Facing the TON Ecosystem #TON#blockchain The Daily TON highlights the closure of the SettleTON project as part of a trend of non-profitable projects within the TON ecosystem. While lesser-known projects are closing, the core functionalities remain intact. However, the situation signals an urgent need for changes to prevent further losses. Source: link @tonlines
Hashtags
@tonlines · Post #7534 · 19.11.2025 г., 14:56
⚡️Toncoin Unveils New Documentation #TON#blockchain Toncoin has launched a completely revamped documentation site incorporating community feedback. The update includes AI assistance, simplified navigation, and comprehensive guides for various tools and concepts related to TON. Source: link @tonlines
Hashtags
@tonlines · Post #7305 · 21.05.2025 г., 09:04
Hipo Highlights: Understanding Blockchain Nodes #blockchain#TON Hipo explains the fundamental role of nodes in blockchains like TON and Bitcoin. Nodes are crucial for maintaining decentralization and security by storing and syncing data globally. Source: link @tonlines
Hashtags
@tonlines · Post #7301 · 20.05.2025 г., 15:37
The Daily TON: Why Technical Knowledge of TON Matters #TON#blockchain The Daily TON highlights the importance of understanding technical aspects of the TON blockchain even for regular users. Knowledge of elements like collators and technical underpinnings helps users avoid potential pitfalls and make informed decisions, underpinning their participation in the ecosystem's growth. Source: link @tonlines
Hashtags