@testflightynoti · Post #37646 · 07.05.2026 г., 06:19
#Stride#Academic#AI Join the Stride - Academic AI beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/gATCnurY Shared by Dimitri
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
Пребарај: #stride
@testflightynoti · Post #37646 · 07.05.2026 г., 06:19
#Stride#Academic#AI Join the Stride - Academic AI beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/gATCnurY Shared by Dimitri
Hashtags
@abmedia_news · Post #23702 · 07.04.2026 г., 10:34
【🚀資訊安全|Solana 基金會推出 STRIDE 與 SIRN:TVL 超過 1,000 萬美元的協議將獲全天候安全監控 】 #Solana#STRIDE#SIRN#Security 📍請見報導: https://abmedia.io/solana-foundation-stride-sirn-security-defi-monitoring 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io
@CryptoM · Post #64664 · 09.04.2026 г., 13:14
🚀 Drift Protocol Develops Recovery Plan After $285 Million Crypto Theft Drift Protocol, which recently suffered a theft of $285 million in crypto assets, has provided an update on the situation via the X platform. According to Odaily, the company is actively working with partners to formulate a coordinated recovery plan. The current focus is on stabilizing the situation and offering protocol-level assurances to all affected users and partners. Drift emphasized its role as a core infrastructure provider for many, and announced plans to participate in the Solana Foundation's security project, STRIDE, with more details to be released in the future. #DriftProtocol#CryptoTheft#CryptoRecovery#Solana#BlockchainSecurity#STRIDE#SOL
@CryptoM · Post #64842 · 10.04.2026 г., 03:34
🚀 Solana's Neutral Trade Responds to Drift Attack Impact Neutral Trade, a quantitative strategy sharing platform within the Solana ecosystem, announced that it is assessing the impact of the Drift attack on its platform and users. According to Foresight News, the team is awaiting further investigation results from Drift. The update includes the suspension and removal of all 'Drift Architecture' vaults from the homepage, although users can still view related positions on the portfolio page. Currently, the homepage only displays the 'Neutral Strategy' proprietary strategy vaults, which are operating normally and have not suffered any losses. The 'Neutral Strategy' vaults have undergone independent audits by Halborn, Offside Labs, and Quantstamp, and are integrated with FORDEFI's enterprise-grade security solutions. Although the NT Earn vaults had Drift position configurations, Neutral's risk engine detected anomalies during the attack and preemptively withdrew funds to Jupiter Lend and Kamino, preventing any losses. Neutral Trade is committed to advancing security upgrades and is considering joining the STRIDE ecosystem security program supported by the Solana Foundation. Previously, Neutral Trade reported a loss of approximately $3.67 million due to the Drift attack. #Solana#NeutralTrade#DriftAttack#CryptoSecurity#DeFi#Blockchain#STRIDE#JupiterLend#Kamino#QuantitativeStrategy#SOL#JUP
@CryptoM · Post #65185 · 11.04.2026 г., 17:11
🚀 Solana's Drift Protocol Suffers $285 Million Loss in Security Breach Drift Protocol experienced a significant security breach on April 1, 2026, resulting in a loss of $285 million. According to NS3.AI, attackers managed to drain Solana's largest perpetual futures exchange within approximately 12 minutes. The exploit was facilitated by a governance setup that utilized a two-of-five multisig and a zero-delay path for privileged actions. The attackers spent six months cultivating trust with insiders, leading to two Security Council members pre-signing transactions with hidden authorizations. In response to the breach, the Solana Foundation launched STRIDE, a foundation-backed continuous security program, just days after the incident. #Solana#DriftProtocol#SecurityBreach#285MillionLoss#PerpetualFutures#NS3AI#MultisigExploit#GovernanceSetup#STRIDE#SolanaFoundation#CryptoSecurity#InsiderAttack#BlockchainSecurity#SOL