@mib_messageinabottle · Post #6946 · 26.05.2024 г., 12:23
"They're forcing us to murder their innocent children!!!" Yeah, sure, of course ..... You #Israelis are obviously the real victims here!!! #Gaza #Genocide
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
Пребарај: #israelis
@mib_messageinabottle · Post #6946 · 26.05.2024 г., 12:23
"They're forcing us to murder their innocent children!!!" Yeah, sure, of course ..... You #Israelis are obviously the real victims here!!! #Gaza #Genocide
@trumpsear_tg · Post #1425 · 27.08.2025 г., 18:59
Anti-government actions in Israel 🇮🇱 Protesters are blocking the roads 🚧, paralyzing traffic 🛑. Many Israeli Arabs are participating in the demonstration ✊ and are asking for permission to enlist in the army 🪖 and participate in the war against Hamas ⚔️. #arabs#israelis#war#hamas 👂More on Trump's Ear ⚠️
@addisstandardeng · Post #21271 · 02.02.2026 г., 05:39
News: Protesters gather at #Knesset to demand government facilitate #Ethiopian immigration Demonstrators gathered outside the Knesset on Sunday demanding that the government facilitate the immigration of approximately 10,000 relatives of #Israelis of Ethiopian descent, given ongoing violence and strife in Ethiopia’s #Tigray region. Protesters said the government has halted immigration from Ethiopia and stopped funding for it, demanding that leaders immediately “reallocate funds to resume immigration and bring to Israel those whose situation continues to deteriorate against the backdrop of the civil war in Ethiopia,” according to a statement from the organization, Power for Aliyah, which assists Ethiopian immigrants. The group estimated that roughly 2,000 protesters came from across the country, mostly from the Ethiopian community, many of whom have family members waiting in Ethiopia to.... https://www.timesofisrael.com/protesters-gather-at-knesset-to-demand-government-facilitate-ethiopian-immigration/
@mib_messageinabottle · Post #6922 · 24.05.2024 г., 15:56
International Court of Justice (#ICJ ) has finally had enough of #Israelis and their #genocidal actions against the #Palestinians of Gaza It has finally decided to do what #SouthAfrica demanded it should have done months ago: • Demand that the #ZioNazis halt their #genocidal slaughter of innocents in #Gaza and that • Israel must ensure access to Gaza for UN genocide investigators
@mib_messageinabottle · Post #7016 · 02.06.2024 г., 14:58
#Irish politician Thomas #Gould (#SinnFein) excoriates the #Israelis in a blistering speech in Irish Parliament: “The world stands by and does nothing while 15,000 #Palestinian children have been #slaughtered..... We saw photos from when the Israelis #burned men, women and children alive.... I hope you burn in hell #Netanyahu!!"