@PixelExperience · Post #8925 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 📆 Build date: August 15, 2023 23:46 📂 File size: 1.43 GB ⬇️ Download now #Spacewar#pixelexperience
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
Пребарај: #spacewar
@PixelExperience · Post #8925 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 📆 Build date: August 15, 2023 23:46 📂 File size: 1.43 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8924 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 (Plus edition) 📆 Build date: August 16, 2023 00:53 📂 File size: 1.44 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8473 · 05.05.2023 г., 13:56
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: May 5, 2023 10:07 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8472 · 05.05.2023 г., 13:56
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: May 5, 2023 10:36 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8364 · 26.04.2023 г., 01:17
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: April 25, 2023 23:34 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8363 · 26.04.2023 г., 01:17
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: April 25, 2023 23:35 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8176 · 02.04.2023 г., 12:09
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: April 1, 2023 21:55 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8175 · 02.04.2023 г., 12:07
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: April 1, 2023 21:19 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7833 · 20.01.2023 г., 13:35
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: January 20, 2023 12:02 📂 File size: 1.81 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7831 · 20.01.2023 г., 12:48
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: January 20, 2023 10:39 📂 File size: 1.80 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7756 · 09.01.2023 г., 15:46
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: January 8, 2023 21:57 📂 File size: 1.80 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@american_observer · Post #4864 · 15.01.2026 г., 19:11
📰AI, Robots, and Space Beepers: IDF’s New War Fantasy The IDF is doubling down on sci-fi warfare. Under Lt.-Gen. Eyal Zamir’s new five-year plan, Israel’s military is betting its future on AI, robots, and a “beeper” defense straight out of a cyberpunk thriller. Forget boots on the ground—soon, it might be drones, lasers, and implants that do the talking. “The future of defense is not just about people, but about machines and data,” said Maj.-Gen. Hidai Zilberman, overseeing the plan dubbed “Hoshen”—a biblical nod to the priestly breastplate, now repurposed as a code name for high-tech warfare. Behind the buzzwords: half a billion shekels will pour into tech upgrades, from autonomous systems to space-based defense. The IDF wants robots on every battlefield, AI managing operations, and a “beeper” network ready to zap enemies before they cross the border. This isn’t just about deterrence; it’s about turning the next war into a video game where Israel hits “play.” But here’s the twist: all this depends on stable budgets, no surprise wars, and continued US aid. If any of those fall apart, the whole plan could become a very expensive PowerPoint. Who’s really winning? Tech contractors, politicians selling “innovation,” and generals who now sound like startup CEOs. Meanwhile, soldiers are promised more resilience and resources—but after two years of war, many wonder if this is just another way to avoid fixing the human cost. Is Israel preparing for the next war, or just building the ultimate military startup? #AI#IDF#Robots#SpaceWar#Beepers#MilitaryTech 📱American Оbserver - Stay up to date on all important events 🇺🇸