TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

7.09.2025 состоялся релизPithon 3.14! На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками. Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный. Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0 Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает: ▫️ соберет релизный Python 3.14 в новый Docker-образ ▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter) ▫️ распечатает результаты Тест очень простой, усложняйте сами) Вот какие результаты у меня: === Running ThreadPoolExecutor GIL ON TOTAL TIME: 45.48 seconds === Running ThreadPoolExecutor GIL OFF TOTAL TIME: 6.14 seconds === Running basic Thread GIL ON TOTAL TIME: 45.54 seconds === Running basic Thread GIL OFF TOTAL TIME: 4.74 seconds === Running with Multi Interpreter TOTAL TIME: 18.30 seconds Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами. Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵‍💫, нас учили не так! Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL. Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется. Отдельно я затестил память и вот что вышло на 32 потока: ThreadPoolExecutor GIL ON 305.228 MB ThreadPoolExecutor GIL OFF 500.176 MB basic Thread GIL ON 90.668 MB basic Thread GIL OFF 472.444 MB with Multi Interpreter 1267.788 MB Пока не знаю как к этому относиться) В целом - радует направление развития! #release

Hashtags

Резултати

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

Пребарај: #cryptoswap

当前筛选 #cryptoswap清除筛选
TON Crypto News

@toncoin_rap · Post #192 · 16.10.2024 г., 14:52

🎧⤴ 🤑Swap USDt-TRON for USDt-TON at 0% Fees: MyTonWallet's Latest Feature for Crypto Users MyTonWallet has introduced a new feature allowing users to swap USDt-TRON for USDt-TON directly within the wallet, celebrating this launch with 0% service fees on the swaps until November 16, 2024. Although users will still need to cover network fees, this offer represents a valuable chance for the MyTonWallet and Changelly collaboration to support multi-chain asset management, enhancing the TON ecosystem and promoting blockchain interoperability. This move reflects the increasing importance of cross-chain transactions in the DeFi space. Chorus: Swap the Tether, we’re on the run, TRON to TON, let’s get it done. 0% fees, it’s a limited spree, Changelly connects you and me. Verse 1: Yo, MyTonWallet, it's all about the flow, Swappin' USDt from TRON to TON, you know. Zero percent fees, that’s how we ride, Blockchain connect, let’s flip to the other side. Interoperability, that’s the name of the game, One wallet, two chains, never the same. DeFi in the mix, we raise the stakes, Cross-chain power, watch how it breaks. Chorus: Swap the Tether, we’re on the run, TRON to TON, let’s get it done. 0% fees, it’s a limited spree, Changelly connects you and me. Verse 2: November’s the date, time’s ticking fast, Get in the wallet before the deal won’t last. Seamless swaps, that’s the dream we chase, From DeFi to gaming, taking first place. Stablecoins ready, no borders in sight, TRON and TON flying high as a kite. Wallet on lock, assets on the go, Blockchain kings in the crypto show. Chorus: Swap the Tether, we’re on the run, TRON to TON, let’s get it done. 0% fees, it’s a limited spree, Changelly connects you and me. Verse 3: Crypto moves fast, gotta make it count, TON’s rising up, there’s no discount. TRX on the side, let’s bridge the gap, Swappin' with ease, no service trap. DeFi's the future, wallets hold the key, Cross-chain flow, that’s how it should be. Changelly’s got you, no fees to pay, Make that swap today, don’t delay. Chorus: Swap the Tether, we’re on the run, TRON to TON, let’s get it done. 0% fees, it’s a limited spree, Changelly connects you and me. Bridge: Multi-chain vibes, crypto's new light, TRON and TON unite, shining bright. Step into the future, wallets that lead, Cross-chain unity, planting the seed. ### Hashtags: #CryptoSwap #TONCryptoNewsRapStyle 🎧@toncoin_rap

TON Crypto News

@toncoin_rap · Post #195 · 20.10.2024 г., 09:19

🎧⤴ 💎 Telegram’s Crypto Bot Launches Fee-Free Coin Swaps – Best Rates on TON and Beyond! Telegram’s popular Crypto Bot introduced a groundbreaking Swap feature, enabling seamless exchanges of cryptocurrencies, including TON, at optimal market prices with 0% commission. This new feature empowers users to swap tokens effortlessly, catering to the needs of both seasoned traders and beginners. As Telegram strengthens its ties with The Open Network (TON), this development marks a significant step towards making zero-fee crypto trading more accessible and user-friendly. TON, Telegram, and crypto swaps headline this exciting update. Chorus: Swap it, drop it, no fees, we poppin’, Crypto bot’s live, TON fam’s watchin’. Best market rates, yeah, that’s the notion, Zero percent, ridin’ this motion. Verse 1: Telegram’s bot, now it’s all in play, Swappin’ TON coins without delay. Zero fees stack, in a major way, Crypto’s here to stay, what more to say? Swipe right, the trades ignite, Swappin' at the best rates, day or night. TON on deck, the moves in sight, Crypto bot’s game changin’, feelin’ right. Chorus: Swap it, drop it, no fees, we poppin’, Crypto bot’s live, TON fam’s watchin’. Best market rates, yeah, that’s the notion, Zero percent, ridin’ this motion. Verse 2: From TON to ETH or BTC, quick like a flash, One tap on Telegram, and the coins clash. Zero fees givin' more green in the stash, Crypto bot’s hustle, bringin’ in cash. Telegram links up with TON, Best swaps, no cap, just get it done. In the market, bots always on the run, Swappin’ coins, and we're havin' fun. Chorus: Swap it, drop it, no fees, we poppin’, Crypto bot’s live, TON fam’s watchin’. Best market rates, yeah, that’s the notion, Zero percent, ridin’ this motion. Verse 3: Telegram and TON, now we’re connectin’, Coins on the move, the fam’s respectin’. Best rates, zero fees, no second-guessin’, Crypto's risin', it's impressin'. Swap so quick, it’s like a race, Crypto bot's here, savin' time and space. TON's in the mix, the market’s embrace, With zero fees, everyone finds their place. Chorus: Swap it, drop it, no fees, we poppin’, Crypto bot’s live, TON fam’s watchin’. Best market rates, yeah, that’s the notion, Zero percent, ridin’ this motion. Bridge: TON in the mix, we set the tone, Zero fees, we break the stone. Crypto bot's king on this throne, This is the future, watch it be known. #TONCommunity#CryptoSwap#TON #TONCryptoNewsRapStyle 🎧@toncoin_rap