@Inspiringthoughts · Post #10574 · 26.02.2025 г., 13:35
800 People Work in Proper Sync... Amazing 👏👏👏👏👏 #Cricket
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
Пребарај: #cricket
@Inspiringthoughts · Post #10574 · 26.02.2025 г., 13:35
800 People Work in Proper Sync... Amazing 👏👏👏👏👏 #Cricket
Hashtags
@TFGames · Post #1562 · 17.12.2023 г., 18:55
#SPIN#CRICKET#GAMES https://testflight.apple.com/join/evSNfx6v
@TFGames · Post #1343 · 06.12.2023 г., 19:23
#SPIN#CRICKET#GAMES https://testflight.apple.com/join/P56QewIg
@edgemarketai · Post #8128 · 24.04.2026 г., 07:54
🚨 NEW EDGE MARKET LIVE Will Chennai Super Kings win 3 matches before May 28, 2026? This is not guessing. This is signal. Trade the outcome Validate results Earn BETON for truth The crowd sees patterns before headlines do. Join now 👇 https://edgemarket.ai/bnb/cricket/will-chennai-super-kings-win-3-matches-before-may-28-2026/statistics/69e5fea2dcd75d8e462361b8 ⚡ Powered by AI + community validation ⚡ Built on dual token system ⚡ Real outcomes. Real rewards. #EdgeMarket#BETON#SIGNAL#Cricket#PredictionMarkets
@testflightynoti · Post #38089 · 12.05.2026 г., 18:35
#MyCric#Fantasy#Cricket Join the MyCric Fantasy Cricket beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/ppUvC7mk Shared by Dimitri
@desi_memes_funny_jokes · Post #4689 · 02.06.2024 г., 07:34
#Babar ajam 😂🤣💯💯✅... #Pakistan#India#cricket
@edgemarketai · Post #8124 · 22.04.2026 г., 17:31
EdgeMarket 🏏 Event Live Will Kolkata Knight Riders win 3 matches before May 27, 2026? Enter the market https://edgemarket.ai/bnb/validate-results #EdgeMarket#Validation#AIOracle#Cricket#Web3
@vision11official · Post #1199 · 17.04.2023 г., 12:30
Sirf Meh kyu? Khelo sabke sath only on #Vision11! Kyuki Iski Jhalak, Sabse Alag… Download the App & make your team now. https://vision11.in/APK/vision11.apk #IskiJhalakSabseAlag#Vision11#Ipl#Cricket#Fantasy
@edgemarketai · Post #8143 · 29.04.2026 г., 09:42
RCB vs Gujarat Titans is live on EdgeMarket. You are not just watching the game You can take a position before it ends YES if RCB wins NO if Gujarat Titans win Stake. Earn. Truth. Enter the market 👇 https://edgemarket.ai/bnb/cricket/will-royal-challengers-bengaluru-defeat-gujarat-titans/statistics/69e89c14a9870bbf09e2450a #EdgeMarket#RCB#GujaratTitans#Cricket#PredictionMarkets
@testflightynoti · Post #38178 · 12.05.2026 г., 19:18
#crease#Your#Cricket#Circle Join the crease: Your Cricket Circle beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/69Ssg9fJ Shared by Dimitri
@DESI_MEMES_Funny_Jokes · Post #6622 · 06.03.2025 г., 11:46
💔 . #memes#reelitfeelit#fyp#foreyoupage#davidmiller#cricket#viratkohli#trendingreels
@djangoproject · Post #447 · 18.09.2017 г., 10:35
https://pybee.org/news/buzz/2017-google-summer-of-code-final-report-dayanne-fernandes/ After almost 4 months of work on Google Summer of Code 2017, finally I'm completing my proposal. Every widget migration and every commit/PR/issue/discussion with my mentors about Cricket , Toga and rubicon-objc were detailed on the Issue 58. "Eating your own dog food" The best way to show that a product is reliable to the customers is use it. So, the way to show that #Toga is an effective tool to build a #GUI is to build a complete application using it. #Cricket is a graphical tool that helps you run your #test suites. Its current version is implemented using #Tkinter as the main GUI framework. So, why not test Toga inside of another product from #BeeWare? That's what I have acomplished during my GSoC work.