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

Резултати

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

Пребарај: #degenphone

当前筛选 #degenphone清除筛选

📱DegenPhone — phenomenal pool results, what’s next From the moment the pool opened, all 1,000 numbers sold out in 8 minutes 😮. Due to high demand, +100 more were added, and the first stage closed 30 minutes after launch. ⚡️Recalculation & distribution • During the sale there were around twenty hacking/DDoS attempts — the team secured the infra, contracts are fine 😎. Because of this, some multipliers were shown incorrectly in the moment. • The team recalculated distribution from on-chain data (not the dashboard DB), taking the exact timestamp of each transaction and the right multiplier. • Earliest participants were prioritized. Final supply — 1000 + 100 numbers. ⚡️Refunds Participants with deposits < 100 TON who didn’t receive an NFT have been refunded. Funds were sent from this wallet ⚡️Promo codes • Personal promo codes have been sent — please check your dashboard. • Asked for more bonuses? They’ll be applied at the next auction❤️ ⚡️What’s next • Auction next week. Exact date and time will be announced separately. • Keep your promo code ready — you’ll need it. • Follow the channel so you don’t miss the announcement. The team thanks everyone who took part — this is just the beginning! 🔥 📱Connect your wallet before the next auction #DEGENPHONE#NFTnumbers#Web3#NFT#eSIM

⚡️DegenPhone goes Live TODAY! Launch Pool opens 7 August, 19:00 CET — 1,000 NFT phone numbers. Most of us still rent a number from a carrier and pay more every year while tech gets cheaper. Carriers collect and sell our data, and SIM-based hacks have multiplied. With AI tools going mainstream, those attacks will only grow. What DegenPhone brings ⭐️Number = NFT. You own it as long as the token sits in your wallet. ⭐️Real Tier-1 eSIM (EU/US). ⭐️Full privacy. No passport, no selfies, no SIM-swap risk. ⭐️SMS from any service (banks, exchanges, 2FA, Uber). Voice is on the near roadmap. ⭐️Liquid asset. Transfer, sell, or gift in one transaction. ⭐️API. A bot reads the code and confirms signup for you. 🙁 Missed anonymous numbers on Fragment? Floor there climbed from 9 TON to ~900 TON (×100). Check what DegenPhone adds on top NFT eSIM vs Anonymous Numbers Real eSIM Fragment: No ❌ DegenPhone: Yes ✔️ Use cases Fragment: only one — within the Telegram ❌ DegenPhone: full telephony ✔️ (registration on multiple platforms and messengers, SMS reception from any service: banking, exchanges, 2FA, Uber) Voice calls Fragment: No ❌ DegenPhone: On the near roadmap ✔️ Bot/AI integration Fragment: No ❌ DegenPhone: yes ✔️ NFT ownership & privacy Fragment: yes ✔️ DegenPhone: yes ✔️ Fragment grew on Telegram login alone. DegenPhone delivers more utility, so demand can be even higher. Get in early! How the multiplier works ⚡️ You can stake any amount of TON, but staking at least 100 TON guarantees you at least one NFT number. ⚡️ The earlier the pool level, the bigger your bonus Let’s take an example: you stake 100 TON. Then: • while the pool is under 10 000 TON, your stake counts as 200 TON (+100% multiplier) • under 25 000 TON, it counts as 175 TON (+75% multiplier) • under 50 000 TON, it counts as 150 TON (+50% multiplier) The earlier you join, the more NFTs you get for the same amount 📱 Connect your wallet now Bonus: one of our referrers will win a Telegram gift — 🎁Tama Gadget #68508 on a black background! #DEGENPHONE#NFTnumbers#Web3#NFT#eSIM

⚡️ Today: sale of new DegenPhone numbers Start — August 20, 19:00 CET. This round offers 2,000 NFT numbers. 🔥 The key part: each purchase instantly reserves a new NFT, and the next NFT of the same rarity becomes more expensive — the step is hardcoded in the smart contract. This makes the collection grow in value organically as demand rises. After all 2,000 are sold, a 7-day vesting starts. Then you can claim the NFTs to your wallet, hold them, or trade freely. ❤️How to get ready: 🔵Connect your TON wallet in the bot and check your balance 🔵 Keep your promo code handy 🔵 New here? Check the Vaults FAQ in the app and the DegenPhone channel For those taking part: the project is preparing a utility-token airdrop for NFT holders (calls/SMS/AI). Watch for the snapshot announcement and instructions from the team 😎 #DEGENPHONE#VaultAuction#TON#NFTnumbers#eSIM

Telegram & TON NEWS

@all_telegram_ton_news · Post #23279 · 28.02.2026 г., 11:58

🚀Degen Privacy Stack 2026: Own Your Comms with No-KYC Crypto Tools – From eSIMs to Encrypted Chats! here's the ultimate blueprint for true digital sovereignty – all powered by crypto, privacy keys, and zero KYC hassles. Stay ghosted in a surveillance world: - Degenphone eSIM Mastery: Tokenize real eSIM phone numbers as NFTs on Solana/TON. Own a working number for SMS, calls, and data plans – mint, trade, activate anonymously via blockchain. No ID, no docs – just your wallet and privacy keys for instant, traceless global connectivity. - tMail for Ephemeral Emails: Grab disposable, auto-expiring emails without KYC. Crypto payments optional for premium anonymity – link to your setups for secure logins that vanish post-use, keeping your real identity locked away. - Nostr Protocol Freedom: Decentralized social with pub/priv keys – no email/phone signup, pure P2P relays. Zap sats via Lightning, build uncensorable networks. Own your data, migrate keys seamlessly for ultimate control. - SimpleX Chat Supreme: E2EE messenger with no user IDs – connect via QR/one-time links. Amp up with white noise vector sessions: Inject random noise into traffic for anti-analysis, quantum-resistant encryption, and self-destructing messages. - Vector Messenger Edge: Nostr-based, zero-metadata encryption for texts, media, voice. BIP-39 wallet integration turns your account into a crypto vault – plausible deniability and no-compromise privacy. - White Noise App Stealth: Nostr-powered secure messenger with MLS end-to-end encryption. Forward/post-compromise security, identity-free – massive scalable groups without leaks. - 0xChat Lightning Vibes: Nostr secure chat with private key login – no reg, E2EE DMs/groups, voice/video, Cashu/Lightning payments. Encrypted everything, alias keys for extra secrecy. - Video Calls on Honey HiveTalk: Nostr-first conferencing at https://honey.hivetalk.org – Lightning-powered rooms, desktop-optimized for private group calls. Zap to join/active, no KYC barriers. Stack these for crypto trades, activism, or pure freedom – own your phone, email, chats with crypto keys only. No Big Tech oversight! #DegenPrivacy#NoKYC#CryptoSovereignty#Nostr#SimpleX#VectorMessenger#WhiteNoiseApp#0xChat#Degenphone#tMail#HiveTalk#PrivacyTools2026 Your fave stack addition? Zap or reply! 🔒👻