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

Резултати

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

Пребарај: #mara

当前筛选 #mara清除筛选
Onchain Lens Channel

@OnchainLens · Post #4919 · 07.01.2026 г., 00:46

The Bitcoin mining firm #MARA deposited 519.46 $BTC worth ($48.3M) to #FalconX. https://intel.arkm.com/explorer/entity/mara-pool https://x.com/OnchainLens/status/2008701574462484758 Follow @onchainlens for more onchain updates

Okeefe Media Group

@OKeefeMedia · Post #1085 · 14.03.2025 г., 07:34

Exposing corruption by day. Dropping beats by night.🎶🔥 Miami, you ready?March 29th.#MARA FREE PARTY. And we all know—there ain’t no party like a James O’Keefe party. I go on at MIDNIGHT. I hope to see you all there! Let’s make history.🚀#MakeAmericaRaveAgain @OKeefeMedia

🔔Biznes va tadbirkorlik oliy maktabi va MARA texnologiya universiteti o‘rtasida biznes ta’limini rivojlantirish bo‘yicha hamkorlik o‘rnatildi 📝 Oliy biznes maktabida Malayziya texnologiya universiteti (UiTM) Biznes va menejment fakulteti dekani, professor Firdaus Abdulla boshchiligidagi delegatsiya bilan uchrashuv bo‘lib o‘tdi. 📣Graduate School of Business and University Technology MARA (UiTM) have established cooperation in the field of business education development 💼A meeting was held at the Graduate School of Business with a delegation from the Universtiy Technology MARA (UiTM) led by Professor Firdaus Abdullah, the Dean of the Faculty of Business and Management. 💠 Высшая школа бизнеса и Технологический университет Малайзии (МАРА) установили сотрудничество в области развития бизнес-образования 🔵 B Высшей школе бизнеса проведена встреча с делегацией Технологического университета Малайзии (МАРА) во главе с деканом факультета бизнеса и менеджмента, профессором Фирдаусом Абдуллахом. #GraduateSchool#MARA#Management#Economy 🔝Web-site |🔝Facebook |🔝Instagram | 🔝Youtube

🎓Innovatsion tadbirkorlikni rivojlantirishda biznes va ta’limning ahamiyati 🔴 Dunyodagi oliy ta’lim sohasidagi asosiy tendensiyalardan biri universitetlarda innovatsion tadbirkorlik faoliyatini rivojlantirishdir. 🇺🇿O‘zb 💡Issues of cooperation between universities and business in the development of innovative entrepreneurship were discussed 🟠 One of the main trends of higher education system in the world is the development of innovative entrepreneurship in universities. 🇬🇧 Eng 🗣️ Обсуждены вопросы взаимодействия университетов и бизнеса в развитии инновационного предпринимательства 🟡 Одним из основных тенденций системы высшего образования в мире является развитие инновационного предпринимательства в университетах. 🇷🇺Ru #GraduateSchool#Lecture#Mara#Technology 🌐Web-site | ✅Telegram | ✅Facebook | 🌐Instagram

🎺Hurmatli professor-o‘qituvchilar va tinglovchilar! 👩‍💻 Sizlarni Malayziyaning MARA texnologiya universiteti xorijiy mutaxassislari ishtirokidagi “Innovatsion tadbirkorlikni rivojlantirishda ta’lim va biznes o‘rtasidagi hamkorlik” mavzusidagi amaliy seminarga taklif etamiz. ✅ Seminardan maqsad: ✅ Ta’lim muassasalari tomonidan biznes bilan samarali hamkorlikni o‘rnatish bo‘yicha Malayziya tajiribasi bilan tanishish; ✅ Ta’lim va biznes o‘rtasidagi hamkorlikning mohiyati va ahamiyatini tushuntirish; ✅ Ta’lim va biznesni uzviy bog‘lash orqali innovatsion tadbirkorlik rivojlantirish istiqbollari bilan tanishish. 🌐 Seminar ingliz va o‘zbek tilida olib boriladi. 📆 Sanasi: 25 - Aprel 2024-yil 🕤 Vaqti: 10:30 📍 Manzil: Biznes va tadbirkorlik oliy maktabi (1-qavat) 🇬🇧 Eng 🇷🇺 Ru #GraduateSchool#Lecture#Mara#Technology 🌐Web-site | ✅Telegram | ✅Facebook | 🌐Instagram

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24538 · 12.05.2026 г., 08:30

【🚀 傳統金融|BTC 礦企季報:MARA 營收 -18%、CleanSpark 虧 2.24 億】 #CleanSpark#Mara#比特幣挖礦 MARA 與 CleanSpark 於 5 月 11 日公布財報,指出幣價跌勢導致營收下滑並認列大額虧損。 MARA Q1 營收減 18% 並賣出逾兩萬顆 BTC 減債;CleanSpark 則持倉認列 2.24 億美元虧損。兩家去槓桿與擴張策略的不同—反映出礦企在減半週期下的兩條生存路徑。 📍閱讀全文: https://abmedia.io/mara-cleanspark-q1-q2-earnings-btc-mining-may-2026 📍 訂閱鏈新聞頻道:https://linktr.ee/abmedia.io

Venture Village Wall 🦄

@venturevillagewall · Post #3801 · 06.01.2025 г., 07:00

MARA Moves BTC for Extra Revenue MARA miner transfers 7,377 BTC (16.4% of reserves) to lending services for modest income. Details: focus on short-term agreements, under 10% annual returns. Aims to cover operational costs. December saw a hash rate surpass of 50 EH/s, BTC reserves now at 44,893. In 2025, Metaplanet aims to grow BTC holdings to 10,000, currently holding 1,762 BTC. Company faces a 14% stock drop after announcing Bitcoin operations as main business focus despite reporting a budget surplus and exceeding $1 billion in capitalization. Jeju Island, South Korea, launches NFT-based tourism cards in 2025, utilizing the local blockchain stablecoin for tourist benefits. Link to the article #MARA#Metaplanet#Crypto#NFT#Tourism#Blockchain#Stablecoin

Venture Village Wall 🦄

@venturevillagewall · Post #3803 · 06.01.2025 г., 13:00

MARA Holdings Boosts Bitcoin Lending Program MARA Holdings increases hashrate by 15% to 53.2 EH/s and expands bitcoin reserves to 44,893 BTC. The company has loaned 7,377 BTC to third parties for yield generation amidst industry scrutiny. VP Robert Samuels indicates significant interest in the lending program, which focuses on short-term arrangements generating modest yields. Concerns arise over potential risks associated with past bankruptcies in the mining sector. More details in the original article: Coindesk #MARA#Bitcoin#Lending#Crypto#Mining#YieldGeneration#Finance#Investment#RiskManagement#EU#MiCA

Crypto M - Crypto News

@CryptoM · Post #64808 · 10.04.2026 г., 01:23

🚀 U.S. Stocks Rise as Crypto-Linked Stocks Show Mixed Results U.S. stocks ended the trading session on a positive note, with overall gains observed across the market. According to NS3.AI, crypto-linked stocks displayed mixed performance. CRCL experienced a significant decline, falling over 9.34%. In contrast, COIN saw a decrease of more than 3.47%, while Strategy (formerly MicroStrategy) recorded a modest increase of over 0.44%. MARA also showed positive movement, gaining more than 1.79%. #USStocks#CryptoStocks#MarketUpdate#StockMarket#Investing#COIN#CRCL#MARA#MicroStrategy

Venture Village Wall 🦄

@venturevillagewall · Post #3950 · 22.01.2025 г., 13:00

Circle Acquires Hashnote; $5.6M for Wingbits 🔍 Institutional investment management platform Hashnote acquired by Circle. 💰 Wingbits, a token-incentivized flight tracking network, raises $5.6M in a strategic funding round led by Borderless Capital and Bullish, with participation from various investors. 🔄 Significant crypto movement detected: 2,410 #BTC (worth $253M) transferred to Coinbase Institutional. ⚡ Mantle announces a financial blockchain center with a treasury of $4.3B, planning expansion of mETH and FBTC Protocols in 2025. 🌐 Mistral AI aims for IPO and opens Singapore office as part of regional expansion. 🏛️ Major U.S. Bitcoin miner MARA advocates for Bitcoin reserves in 50 states with state-level bills under consideration. 🚀 Stargate Project initiated by tech giants for AI infrastructure in the U.S., with $500 billion investment planned by 2029. 🔗Read more about Mantle's blockchain center. #Hashnote#Circle#Wingbits#Crypto#BTC#Mantle#mETH#FBTC#MistralAI#IPO#MARA#Bitcoin#StargateProject#AI#VC