@musicliveinternational · Post #5093 · 25.12.2025 г., 13:36
#soldout Такие картины нас очень радуют 🔝💖
Hashtags
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
Пребарај: #soldout
@musicliveinternational · Post #5093 · 25.12.2025 г., 13:36
#soldout Такие картины нас очень радуют 🔝💖
Hashtags
@savinobalzano · Post #790 · 24.10.2024 г., 11:48
https://x.com/SavinoBalzano/status/1849415972316172459?t=5OkmYNi0ZvSeUHgAPD6GTQ&s=19 Carissimi, gira voce che la tredicesima edizione di "Euro, Mercati e Democrazia" di a/simmetrie sia #SoldOut. Visto? La vita è fatta così: ogni lasciata è persa e il tempo è poco. Se però volete sprecarne ancora credendo che la #sinistrucola tenga a cuore ai poveri, che la salvezza sia "ridurre il debito e tenere conti in ordine" o che "menomale! il diritto #UE prevale su quello italiano", fate pure. Gli altri saranno al #googy13.
Hashtags
@singsingchannel · Post #858 · 28.09.2024 г., 20:31
🚀 SOLD OUT! 🚀 Our Sep 28 Sale was a total success, with all Lucky Boxes and Kara Boxes flying off the shelves! 🎉 Missed out? Don't worry—more exciting sales are coming soon. Stay tuned and be ready to grab yours next time! 💥 #SingSingTycoon#NFTSale#SoldOut 🎤Announcement | Chat | X (Twitter) | Website | Game
Hashtags
@singsingchannel · Post #815 · 21.09.2024 г., 05:34
🎉 Kara Box Session 2 SOLD OUT! 🎉 🚀 Another incredible milestone for the SingSing community! 🙌 Thank you to everyone who participated and secured their Kara Box! 💎✨ Stay tuned for more exciting updates and opportunities coming your way! 🎤🔥 #SingSingTycoon#KaraBox#SoldOut#PlayToEarn#SingSing Announcement | Chat | X (Twitter) | Website | Game
@singsingchannel · Post #851 · 28.09.2024 г., 05:40
🎉 SOLD OUT! 🎉 Our Sep 27 SingSing Flash Sale sold out in record time! 🚀 All Lucky Boxes and Kara Boxes are gone 🛍💥 Next Sale will be at 13:00 UTC - Sep 28💎✨ #SingSing#Kara#LuckyBox#Sale#SoldOut 🎤Announcement | Chat | X (Twitter) | Website | Game
@singsingchannel · Post #842 · 26.09.2024 г., 17:04
🎉 SOLD OUT! 🎉 Our Sep 26 SingSing Flash Sale sold out in record time! 🚀 All Lucky Boxes and Kara Boxes are gone 🛍💥 Big thanks to everyone who joined—stay tuned for more exciting sales coming soon! 💎✨ #SingSing#Kara#LuckyBox#Sale#SoldOut 🎤Announcement | Chat | X (Twitter) | Website | Game
@singsingchannel · Post #709 · 17.07.2024 г., 02:15
Treasure NFT Session 6 is officially SOLD OUT! 🎉 Thank you for your amazing support. We're thrilled to announce that the whitelist for Session 7 is now OPEN! To be eligible: 1️⃣Comment on this Post, tag 3 friends. 2️⃣Fill out the form with your wallet address and the comment link👉form (this form will be closed at 14:00 UTC - July 22) Don’t miss your chance to be part of the next adventure. 🚀 Note: The additional Whitelist Pool will be opened in next few hours! #TreasureNFT#SoldOut#Session6#Whitelist#NFTCommunity
@singsingchannel · Post #694 · 11.07.2024 г., 10:54
Treasure NFT Session 5 is officially SOLD OUT! 🎉 Thank you for your amazing support. We're thrilled to announce that the whitelist for Session 6 is now OPEN! To be eligible: 1️⃣Comment on this Post, tag 3 friends. 2️⃣Fill out the form with your wallet address and the comment link👉https://forms.gle/qutLw7av9qbzCNVm8 (this form will be closed at 14:00 UTC - July 15) Don’t miss your chance to be part of the next adventure. 🚀 #TreasureNFT#SoldOut#Session5#Whitelist#NFTCommunity
@singsingchannel · Post #786 · 08.09.2024 г., 13:07
🎉 LUCKY BOX SESSION 1 sold out in a flash! ⚡️ 100 Lucky Boxes were sold out in 1 minute. Big thanks to everyone who grabbed theirs! 🙌 Missed out? Don’t worry—Session 2 is coming soon! Stay tuned! 👀 #NFT#Karaoke#SingSingGame#RUBY#SoldOut#StayTuned