@fight4f · Post #9290 · 01.01.2026 г., 12:13
No guns needed, no Gaza needed, let all the Iranian wrestlers who support Palestine and the Israeli Krav Maga fighters duel in the MMA ring. #MMA
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
Пребарај: #mma
@fight4f · Post #9290 · 01.01.2026 г., 12:13
No guns needed, no Gaza needed, let all the Iranian wrestlers who support Palestine and the Israeli Krav Maga fighters duel in the MMA ring. #MMA
Hashtags
@fight4f · Post #8695 · 05.09.2024 г., 04:05
華人社會媒體濫用了MMA MMA Mixed ------> martial arts 混合-- 不同及多種的武術 (本身是無限制門派的意思) 建議一些只習慣看中文字的人先去理解其英文原意。不要隨便拿一些沒有認真練過的人的街頭打鬥說成 MMA , 這是一種耻辱。 #MMA 現代媒體的水平愈來愈低 。
Hashtags
@Viral_Today · Post #1197 · 08.02.2021 г., 00:00
Never give up. Cheick Kongo had the greatest comeback during his fight against Pat Barry YouTubeNews/ #MMA
Hashtags
@maineventnews · Post #4 · 16.07.2024 г., 06:01
A UFC Fight Completely Split the Russian Heavyweights. Volkov Continues to Troll Pavlovich Unexpectedly. It's been just under a month since the bout between two top Russian heavyweights in the UFC, Alexander Volkov and Sergei Pavlovich. By now, most people who were anxious about the fight between our compatriots have likely digested the event (as well as Volkov’s victory, which few expected). Changes in Rankings The rankings now look familiar in their relatively new configuration (Volkov is now ranked third in the heavyweight division, while Pavlovich is fifth), and each of the participants in the recent clash seems to be moving on. However, from time to time, references to the fight still surface among fans—and in the social media posts of the former opponents themselves. Altered Relationships It’s also curious (and somewhat sad) that the relationship between Volkov and Pavlovich has evidently changed. Volkov has continued to troll Pavlovich, keeping the tension between them alive. #MMA 👁Subscribe to Main Event | Sport News
Hashtags
@viral_today · Post #3019 · 16.09.2024 г., 10:30
UFC 306 at the Sphere was a massive success with the UFC investing over $20 million to produce the show. The event was the first of its kind, with audience members being able to feel punches through haptic feedback in the seats. — Ticket prices ranged from $1,000 to $17,000. — Total capacity: 18,000. — The Sphere uses the power of 21,000 homes, with 70% coming from solar energy. @Viral_Today / #wow#mma
@viral_today · Post #2539 · 08.06.2024 г., 10:30
Eddie Hall, a former World's Strongest Man, took on the Neffati brothers in a 2 vs. 1 MMA match. The fight, part of the World Freak Fight League, showcased Hall's immense strength as he faced two opponents simultaneously. Watch the intense highlight of this unique and thrilling match! @Viral_Today / #MMA#wow
@maineventnews · Post #72 · 19.07.2024 г., 14:03
Israel Adesanya is in great shape 🔥 Izzy continues to prepare for the title fight against Dricus Du Plessis and plans to reclaim the belt. Their fight will headline UFC 305, which will take place on August 18 in Australia. #MMA #UFC 👁Subscribe to Main Event | Sport News
@edgemarketai · Post #8011 · 05.03.2026 г., 11:12
Max Holloway vs Charles Oliveira. 5 rounds. Lightweight. Who leaves with the belt? Volume vs submissions. Pressure vs danger. My question: Can Max survive Charles early enough to drown him late? #UFC#MMA
@profile_pictures_tm · Post #11432 · 11.10.2022 г., 16:00
#crypto #MMA
@maineventnews · Post #52 · 17.07.2024 г., 12:00
Diaz Sues Organizers of Fight with Masvidal #box#mma Nate Diaz has filed a lawsuit against the organizers of the fight with Jorge Masvidal. Nate claims he had an agreement for a $10,000,000 payout for the fight. He received an advance payment of $1,000,000, with the remaining $9,000,000 to be paid after the fight. The lawsuit states that the company is refusing to make the payments, claiming that the event was unprofitable. 👁Subscribe to Main Event | Sport News
@muxtasarumarova · Post #517 · 09.01.2023 г., 19:04
🇺🇿🥊🔥Toshkent shahri “Yunusobod” sport arenasida “Muradov Professional League 7” musobaqasi boʻlib oʻtdi. #MPL7#MMA 🥊Musobaqadan foto lavhalar / 1 Foto: Muxtasar Umarova
@maineventnews · Post #63 · 18.07.2024 г., 19:03
A small compilation of brutal bare-knuckle knockouts! Pure madness! Are you looking forward to the UFC this weekend? #MMA #bareknuckle 👁Subscribe to Main Event | Sport News
Hashtags