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

Резултати

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

Пребарај: #lazarusgroup

当前筛选 #lazarusgroup清除筛选
NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24385 · 05.05.2026 г., 14:25

【🔒 資訊安全|Ripple 公開北韓駭客威脅情資:加密產業共享可疑員工 LinkedIn、錢包、惡意網域】 Ripple 5/4(美國時間)宣布透過 Crypto ISAC 把北韓駭客威脅情資公開給加密產業,包含可疑 IT 工作者 LinkedIn、Email、地理位置、跨公司關聯,與詐騙錢包、惡意網域、入侵指標。針對北韓駭客從快速技術攻擊轉向長期社交工程滲透的戰術轉變。 #Ripple#北韓駭客#LazarusGroup 📍閱讀全文: https://abmedia.io/ripple-shares-north-korea-threat-intelligence-crypto-isac-may-2026

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24352 · 04.05.2026 г., 14:30

【🔒 資訊安全|北韓外務省駁斥加密竊盜指控:稱美國用「御用媒體」散布假訊息】 #北韓#LazarusGroup#朝中社 北韓外務省 5 月 3 日發文否認加密竊盜指控,斥責美國散布虛假威脅。 TRM Labs 指 2026 年前四月全球 76% 損失流向北韓,含 KelpDAO 的 2.9 億美元。相比過往沉默,本次罕見發聲顯示國際輿論壓力正升高。 📍閱讀全文: https://abmedia.io/north-korea-foreign-ministry-denies-crypto-theft-allegations-may-2026 📍 訂閱鏈新聞頻道:https://linktr.ee/abmedia.io

Venture Village Wall 🦄

@venturevillagewall · Post #4314 · 05.03.2025 г., 16:00

Crypto Summit Guest List Revealed Notable figures like Kayne West and the Lazarus Group are invited to a major crypto summit. In related news, Mexican billionaire Ricardo Salinas has raised his Bitcoin holdings to 70%, moving away from gold investments. Meanwhile, Jump is resuming its U.S. crypto operations, boosting hiring amid rising trading volumes. #Crypto#Bitcoin#Summit#Finance#Investing#Market#Jump#Arbitrum#LazarusGroup#Salinas

Venture Village Wall 🦄

@venturevillagewall · Post #4218 · 22.02.2025 г., 13:00

Ethereum Rollback Proposed After Bybit Hack Arthur Hayes proposes rolling back Ethereum to a block prior to the $1.5B Bybit hack, arguing it would benefit both the platform and holders. He asserts that Ethereum’s immutability can be revisited, citing prior instances. Support for the rollback comes from Bitcoin maximalist Samson Mow, suggesting it could limit funding for North Korea’s nuclear program. The plan involves pausing all ETH trading and renaming the hacked chain to ETHNK. Bybit CEO assures that company assets exceed the lost amount, with significant reserves remaining secure. For details, read more here. #Ethereum#Bybit#Crypto#Blockchain#Security#Hack#SamsonMow#ArthurHayes#ETH#VC#LazarusGroup#NorthKorea#Defi#Investing#Market#Trading#USDT#WhaleAlert

Venture Village Wall 🦄

@venturevillagewall · Post #4279 · 01.03.2025 г., 16:00

Swiss Central Bank Rejects Bitcoin Reserves Swiss National Bank President Martin Schlegel dismisses holding bitcoin as reserves, citing volatility and security issues. He emphasizes that cryptocurrencies don’t meet the necessary characteristics of a good currency. Read more Amidst market turbulence, Bitcoin saw a sharp decline, hitting an intraday low of $78,197 and trading below $80,000 at $79,875. BTC is down 7% today and 21.9% over the past month. Liquidations in derivatives reached $955.12 million, with significant amounts linked to bullish BTC and ETH positions. Market experts indicate the current downturn is less severe than previous crises, suggesting a healthy release of market risks. Kentucky passes a bill unanimously protecting Bitcoin Rights and self-custody, marking a significant legislative move for cryptocurrencies. #Bitcoin#Crypto#Finance#LazarusGroup#Ethereum#MarketTrends#Regulation#Volatility#Investing#Kentucky#BitcoinRights#SelfCustody#Trading#Liquidations#US#Banks#Macroeconomic#Arbitrage#MarketAnalysis#FTX#CryptoNews

Venture Village Wall 🦄

@venturevillagewall · Post #4227 · 24.02.2025 г., 01:00

eXch Denies Money Laundering Claims Non-KYC exchange eXch rebuts allegations of laundering $1.4B from the Bybit hack, pledging to support privacy initiatives. Read more Montana's House votes against Bitcoin reserve asset bill, largely shelving it after opposition from Republican lawmakers. Read more #eXch#Bitcoin#Bybit#LazarusGroup#Montana#Privacy#Security#Crypto#Blockchain#Legislation#NonKYC#Hack#ReserveAsset#US#News#VC#CryptoNews#MontanaNews#Funding#OpenSource

Venture Village Wall 🦄

@venturevillagewall · Post #4216 · 22.02.2025 г., 10:00

Bybit Hack Linked to Lazarus Group A recent analysis suggests the Bybit hack, involving ~$1.5 billion, may have been conducted by the North Korean Lazarus Group. Arkham Intelligence reports that the group likely converts ERC-20 tokens to ETH, then to BTC, possibly funding nuclear programs. Research also points to potential links with a previous attack on Phemex. Investigators note that funds were moved to wallet 0x33d0...8F65 during the laundering process. Read more: Forklog #Bybit#LazarusGroup#CyberSecurity#Blockchain#Crypto#Hacking#NorthKorea#Financing#CryptoCrime#DeFi#Ethereum#Bitcoin#ERC20#Phemex#FundsLaundering#OnChainAnalysis#ArkhamIntelligence#ZachXBT#AI#VC