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

Резултати

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

Пребарај: #mtgox

当前筛选 #mtgox清除筛选
SpotOnChain | Announcement

@spotonchain · Post #874 · 24.06.2024 г., 09:58

Mt. Gox just announced it will start repaying creditors in $BTC and $BCH in early July 2024. Preparations and compliance measures are complete, but detailed implementation will take some time. Note that Mt. Gox currently holds 141,686 $BTC ($8.67B) across 3 wallets. It seems that the market has already reacted negatively after the news was out, with the $BTC price dropping from $62.8K to $60.8K in only a few minutes. Follow @spotonchain and set alerts for the #MtGox entity via https://platform.spotonchain.ai/en/platform/entity/2182

Hashtags

Сигналы РЦБ Крипто

@usa100cks · Post #25010 · 02.03.2026 г., 07:36

#MtGox#BTC Экс-глава Mt. Gox предложил хардфорк для возврата украденных BTC 2011 года Бывший CEO Mt. Gox предложил рассмотреть возможность хардфорка сети Bitcoin для возврата монет, похищенных в результате взлома 2011 года. Речь идет о примерно 80 000 BTC, которые по текущим ценам оцениваются в около $5,2 млрд. Идея предполагает изменение истории блокчейна с целью признания соответствующих транзакций недействительными. Инициатива уже вызвала критику в сообществе, поскольку подобное вмешательство противоречит принципу неизменяемости блокчейна.

Hashtags

Garantex News Russia

@garantexnews · Post #13848 · 05.12.2024 г., 11:30

💸Биржа Mt. Gox переводит 24 000 BTC после взлета крипты выше $100 000 🟪 Криптовалютная биржа Mt. Gox перевела 24 051 BTC на неизвестный адрес после того, как цена биткоина превысила $100 000. 🟪 По данным Arkham Intelligence, транзакция состоялась утром 5 декабря. Это первая операция биржи с 12 ноября. 🟪 Аналитики предполагают, что перевод может предшествовать новым выплатам кредиторам, пострадавшим от взлома платформы. Ранее подобные транзакции совершались перед выплатами компенсаций. 🟪 Перемещение таких объемов криптовалюты может оказать давление на рынок. Если биткоины будут проданы на биржах, это может привести к снижению их стоимости. #MtGox#Биткоин#BTC АкадемияGarantex|Garantex Announcements|ВКонтакте|YouTube

SpotOnChain | Announcement

@spotonchain · Post #1333 · 18.11.2025 г., 08:30

⚠️ Mt. Gox wakes up: 10,608 $BTC (~$954M) moved today after 8 months offline. 🚨 • 185.5 $BTC ($16.7M) sent to #Kraken ~12 mins ago • 10,422 $BTC ($937M) moved to a new wallet—likely its own cold wallet—potentially to be distributed to exchanges in smaller batches later (~4 hrs ago) Follow @spotonchain to track the next #MtGox moves with us now! https://x.com/spotonchain/status/1990698974127517780

SpotOnChain | Announcement

@spotonchain · Post #1144 · 25.03.2025 г., 00:51

[ATTENTION] Mt. Gox just moved 11,501.4 $BTC ($1B) again! This includes 10,608 $BTC ($929.7M) sent to a new wallet and 893.4 $BTC ($78.3M) to a warm wallet. Notably, after Mt. Gox’s previous transfer, 332 $BTC ($25.5M) was deposited into #Bitstamp. It is likely the 893.4 $BTC sent to the warm wallet will be moved out shortly too! Follow @spotonchain and track #MtGox live now: https://x.com/spotonchain/status/1904335124675833869

SpotOnChain | Announcement

@spotonchain · Post #1128 · 11.03.2025 г., 00:57

Mt. Gox just moved 11,834 $BTC ($910M) again! This includes 11,502 $BTC ($885M) to a new wallet and 332 $BTC ($25.5M) to a warm wallet. Notably, after Mt. Gox’s last major $BTC transfer 5 days ago, 166.5 $BTC was sent to #BitGo, likely for creditor repayment. The above 332 $BTC ($25.5M) may be moved out soon. Follow @spotonchain and track #MtGox live with us now: https://x.com/spotonchain/status/1899263219065393536

Hashtags

SpotOnChain | Announcement

@spotonchain · Post #934 · 31.07.2024 г., 00:32

🔴 Mt. Gox moved 47,228 $BTC ($3.15B) to 3 new wallets in the past 2 hours! Based on past activities, Mt. Gox may soon move parts of these $BTC to CEX to repay creditors. Since July 5, 2024, Mt. Gox has transferred a total of 61,559 $BTC ($3.88B) to #Bitstamp, #SBIVC and #Kraken for creditor repayments. Follow @spotonchain and set alerts for the latest updates about #MtGox now: https://platform.spotonchain.ai/en/entity/2182

SpotOnChain | Announcement

@spotonchain · Post #922 · 23.07.2024 г., 07:03

🚨🚨 BREAKING: Mt. Gox moved 2,239 $BTC ($149M) to #Bitstamp 30 minutes ago! To repay creditors this July as previously announced, Mt. Gox has so far: ➡️ Deposited 1,545 $BTC ($84.87M) to #Bitbank on Jul 5 ➡️ Moved 48,641 $BTC ($3.27B) wallet 3JQie, possibly a #Kraken deposit, on Jul 16 and held them there. ➡️ Moved 2,239 $BTC ($149M) to #Bitstamp on Jul 23 just now. Follow @spotonchain and set alerts for #MtGox now via https://platform.spotonchain.ai/en/platform/entity/2182

Venture Village Wall 🦄

@venturevillagewall · Post #4318 · 06.03.2025 г., 04:00

Bitcoin Hits $92,000; Crypto News Roundup - BioNexus Gene Lab adopts Ethereum treasury strategy, first Nasdaq firm to do so. Read more - Argentina freezes $100M in crypto linked to LIBRA sale, seeks transaction records. Read more - Trump's WLFI invests $336M in various tokens, faces $88M loss. Read more - Ethereum Devconnect set for Buenos Aires, Nov 17-22, 2025. Read more - $50M in USDC minted at USDC Treasury. Details - Mt. Gox transfers over $1B in Bitcoin to an unmarked address. Read more #Bitcoin#Crypto#Ethereum#USDC#MtGox#Argentina#BioNexus#WLFI#Devconnect#Tokens#CryptoAssets#Treasury#ETH#Investments#CryptoNews#Finance#Blockchain#Tech#NASDAQ#Loss

Venture Village Wall 🦄

@venturevillagewall · Post #4358 · 11.03.2025 г., 01:00

Whale Moves ETH, Mt. Gox Transfers BTC A major whale sold 25,800 ETH to avert liquidation, incurring a $31.75 million loss after purchasing at an average price of $3,084 in July 2024. Meanwhile, Mt. Gox transferred 11,501 BTC (approx. $905 million) to a new address and 332 BTC (approx. $26.13 million) to its warm wallet. New markets for minting crvUSD with weETH, cbBTC, and LBTC as collateral launched. #ETH#BTC#MtGox#DeFi#Crypto#Whale#Liquidation#trading#MarketNews#CurveFinance#blockchain#finance#investment#cryptocurrency#ethusd#bitcoinnews#assets#collateral#cryptoexchange#trends