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

Резултати

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

Пребарај: #buyback

当前筛选 #buyback清除筛选
KAP DEPO

@kapdepo · Post #8286 · 26.02.2026 г., 09:26

⚡️🤝 «Узметкомбинат» сокращает уставный капитал в рамках реорганизации. Объявлен обратный выкуп акций 23 февраля 2026 года АО «Узметкомбинат» провело внеочередное общее собрание акционеров. В повестку были включены семь вопросов, ключевыми из которых стали: 🔹 Внесение изменений в условия ранее одобренной крупной сделки; 🔹 Реорганизация компании путём выделения отраслевых экономических субъектов на базе территориальных филиалов “Ikkilamchikorametallar” с определением порядка и условий такого выделения, а также утверждением разделительных балансов; 🔹 Сокращение уставного капитала общества. 📢 В связи с проводимой реорганизацией акционеры получили право требовать от эмитента обратного выкупа простых акций. Цена выкупа установлена на уровне 3 696,99 сумов за одну простую акцию. Последняя дата закрытия реестра (с учётом T+2) — 13 февраля 2026 года. Дата начала процедуры выкупа — 25 февраля 2026 года. — ⚡️🤝 “O'zmetkombinat” qayta tashkil etish doirasida ustav kapitalini kamaytirmoqda. Aksiyalarni qayta sotib olish e’lon qilindi 2026 yil 23 fevral kuni “O'zmetkombinat” AJ aksiyadorlarning navbatdan tashqari umumiy yig‘ilishini o‘tkazdi. Kun tartibiga yettita masala kiritilgan bo‘lib, ulardan asosiylari quyidagilar: 🔹 Avval maʼqullangan yirik bitim shartlariga o‘zgartirish kiritish; 🔹 Kompaniyani “Ikkilamchikorametallar” xududiy filiallari negizida ajratib chiqarish yo‘li bilan qayta tashkil etish orqali shuʼba xo‘jalik jamiyatlarini tashkil etish, ajratib chiqarish tartibi va shartlarini belgilash hamda taqsimlash balanslarini tasdiqlash. 🔹 Jamiyatning ustav kapitalini kamaytirish. 📢 Amalga oshirilayotgan qayta tashkil etish munosabati bilan aksiyadorlar emitentdan oddiy aksiyalarni qayta sotib olishni talab qilish huquqiga ega bo‘ldi. Qayta sotib olish narxi har bir oddiy aksiya uchun 3 696,99 so‘m miqdorida belgilangan. Reestr yopilishini oxirgi sanasi (T+2 ni hisobga olgan holda) 2026-yil 13-fevral. Qayta sotib olish jarayoni 2026 yil 25 fevraldan boshlandi. 📈#UZMK#buyback

UXLINK

@uxlink_community · Post #686 · 09.10.2025 г., 05:51

🗳️ Community Vote Passed with 99.99% Support! We sincerely thank every $UXLINK( on ETH mainnet) holder and community member for your overwhelming support and participation. 🙏 Based on the governance proposal: 🔹 The first Buyback of $UXLINK( on ETH mainnet) is scheduled for mid-October, with 100% of recovery funds allocated to the Buyback process. 🔹 All repurchased tokens will be fully injected into the Swap & Compensation Plan as approved by the community. Additionally: 🔸 The early unlock plan is expected to start by late October, as we continue reconciliation with exchanges across multiple compliant jurisdictions and proceed with on-chain tracking, freezing, and exclusion of hacker-related addresses. More exchanges are expected to enable $UXLINK( on ETH mainnet) trading in the coming weeks, as coordination and audits progress. Together, we’re moving forward — transparently, responsibly, and stronger than ever. 💪🌍 #UXLINK#Governance#Buyback#Web3#Transparency

Crypto M - Crypto News

@CryptoM · Post #64923 · 10.04.2026 г., 09:51

🚀 Flare Proposes Governance Changes to Capture MEV and Reduce FLR Inflation Flare has introduced a governance proposal aimed at capturing Maximum Extractable Value (MEV) at the protocol level and reducing the annual inflation rate of its native token, FLR, from 5% to 3%. According to NS3.AI, the proposal outlines a plan to redirect captured revenue and other protocol fees into the FIRE mechanism, which will facilitate open-market buybacks and burns of FLR tokens upon approval. This initiative is designed to enhance the token's value and stability by decreasing inflation and utilizing MEV capture strategically. #Flare#Governance#MEV#FLR#Crypto#Blockchain#Inflation#Tokenomics#Buyback#Burn