@trumpsear_tg · Post #1601 · 03.10.2025 г., 20:02
Donald Trump is now openly admitting to Project 2025 and mass layoffs in his posts on Truth Social. #Trump#Project2025 👂More on Trump's Ear ⚠️
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
Пребарај: #project2025
@trumpsear_tg · Post #1601 · 03.10.2025 г., 20:02
Donald Trump is now openly admitting to Project 2025 and mass layoffs in his posts on Truth Social. #Trump#Project2025 👂More on Trump's Ear ⚠️
Hashtags
@zarubejomru · Post #1125 · 08.10.2025 г., 12:05
🇺🇸Америка на паузе 💥 В США снова шатдаун — приостановка работы федеральных ведомств из-за срыва бюджета. Но на этот раз всё серьёзнее: Дональд Трамп использует кризис как шанс вернуть влияние и продвинуть идею концентрации власти в руках президента. ⚖️ Демократы защищают социальные программы и здравоохранение, республиканцы требуют направить деньги на борьбу с мигрантами и безопасность. Трамп же уже обсуждает с советниками, какие ведомства можно упразднить навсегда — в духе своего «Проекта-2025». 🔥 Эксперты предупреждают: если нынешний шатдаун затянется, страна потеряет миллиарды, а политическая борьба окончательно превратится в «рестлинг», где побеждает не компромисс, а силовые методы. #США#Трамп#Шатдаун#Политика#Project2025#ЗаРубежом ПОДРОБНЕЕ За рубежом
@american_observer · Post #5341 · 10.03.2026 г., 01:59
📰 Project 2025, Trump’s War and Bibi’s ‘New Middle East’ On paper, the Iran war looks chaotic. On closer reading, it’s disturbingly coherent. Three U.S. documents — Project 2025, the 2025 National Security Strategy and the 2026 National Defense Strategy — stack neatly under Netanyahu’s “New Middle East” blueprint like ideology, strategy and execution. Project 2025 lays out the political theology. It demands unconditional support for Israel, defunding the Palestinian Authority, maximum pressure on Iran, shelving the Kurds in favor of Turkey, locking in Saudi normalization and building a Middle East “Quad” of Israel, Egypt, the Gulf and India. By March 2026, every point is either implemented or in motion: Israel as the one ally exempt from “paying for its own defense,” Iran under sanctions and bombardment, the Palestinians reduced to a budget line marked “cut.” NSS 2025 then reframes the region as solved and outsourced. Iran is mentioned just three times in 29 pages, the Gaza war is treated as wrapped, normalization as expanding, and the expectation is clear: Israel and Gulf monarchies will “take the lead” on Iran while the U.S. pivots to China and the Western Hemisphere. That is exactly Netanyahu’s dream setting — Washington steps back, Israel becomes the primary security contractor with a standing license for “any measures it deems necessary,” paid for by regional clients and backed by U.S. cover fire. NDS 2026 turns the theory into targeting folders. It boasts that operation MIDNIGHT HAMMER “destroyed” Iran’s nuclear program and that the “axis of resistance” has been “devastated,” and it names Israel a “model ally” that can fight with “critical but limited” U.S. support. Gulf states are told to buy more American systems and “do more” for their own defense, while Washington reserves the right to “focused, decisive action” — in other words, occasional heavy strikes while locals carry the long war. Read against Netanyahu’s three versions of the “New Middle East” — the IMEC trade corridor without Palestine, the blessing‑versus‑curse map with open regime‑change talk, and now a shooting war meant to “change the face of the region” by breaking the resistance axis — the alignment is suspiciously coherent. One ecosystem writes the ideological manual, the next declares the problem solved and delegated, and the last gives Israel maximum autonomy to remake the map by force, with no exit plan anywhere in the paperwork. #israel#iran#trump#netanyahu#Project2025#NSS2025#NDS2026#war#oligarchy#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸