@starrailleaks · Post #12544 · 05.05.2026 г., 17:37
[Questionable] Gilgamesh is Destruction Lingsha novaflare One NPC will become playable #anonymous
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
Пребарај: #anonymous
@starrailleaks · Post #12544 · 05.05.2026 г., 17:37
[Questionable] Gilgamesh is Destruction Lingsha novaflare One NPC will become playable #anonymous
Hashtags
@starrailleaks · Post #12368 · 20.04.2026 г., 14:57
SP Blade’s main role is as a support, providing team-wide assistance by deploying a Zone that reduces enemy attributes/stats. This allows him to support a wide variety of DPS characters, including Ashveil. Additionally, he can release a AoE FuA that deals damage scaled based on a percentage of his Max HP. #anonymous
Hashtags
@starrailleaks · Post #11962 · 16.03.2026 г., 13:51
Evanescia Skill deals multi-hit damage. On execute (kill) it restores stacks and energy. When teammates trigger Follow-up / Additional / Aha Instant, Evanescia gains stacks. The Ultimate can either consume stacks to deal damage or clear the stacks for damage; executing an enemy gives extra action and energy refund. Her Aha Instant appears in the middle of the action order and can be copied. Sw SP The Ultimate transformation mainly charges through punchlines converted from Aha Instants. For characters on the Elation path, the order of Aha Instants is fixed, and Sw SP’s always goes last. Sw SP’s Aha Instant cannot be copied. In the transformation state, the dragon cannot be controlled. When using single-target attacks, Sw SP attacks first and the dragon follows up. When using AoE gestures/attacks, the dragon also follows up afterward. At the end, snapping fingers triggers one special Aha Instant. In transformation, the punchlines generated by Aha Instants can store energy, but there is a limit. One more thing worth mentioning is that a future character who can copy Ultimates when conditions are met will be a teammate of Sw SP and Evanescia. #anonymous uncle
Hashtags
@starrailleaks · Post #11945 · 16.03.2026 г., 11:53
hint about animations #anonymous uncle
Hashtags
@starrailleaks · Post #11918 · 11.03.2026 г., 14:52
SW SP has a second form The splash art is just hiding a second form, likely to avoid spoilers. You’ll see for yourselves on March 13th. #anonymous uncle
Hashtags
@starrailleaks · Post #11906 · 11.03.2026 г., 07:47
Buffing Firefly, Seele, Huohuo, Sunday. Jiaoqiu is on the way. (buff is coming) Old Evanescia was abandoned. The special effects (VFX) are being reworked. The current power level is on par with Seele. #anonymous uncle
Hashtags
@starrailleaks · Post #11898 · 10.03.2026 г., 15:39
EMC lightning Elation Evanescia has a summon (probably 🦊) #anonymous uncle
Hashtags
@starrailleaks · Post #11895 · 10.03.2026 г., 08:59
EMC’s mechanic roughly copies the previous teammate’s Elation skill and provides a large number of Punchlines “provides a large number of Punchlines” is wrong! Sparxie is a Punchline-generating machine, it’s written in her design document. EMC doesn’t have the ability to provide a large amount of Punchlines. Among the recently released characters, none generate Punchlines more efficiently than Sparxie. #anonymous uncle
Hashtags
@wallpapersarena · Post #6509 · 19.10.2024 г., 06:59
#Anonymous @WallpapersArena
Hashtags
@wallpapersarena · Post #3765 · 23.07.2022 г., 07:23
#Anonymous @WallpapersArena
Hashtags
@wallpapersarena · Post #3651 · 01.06.2022 г., 16:27
#Anonymous🎭 @WallpapersArena
Hashtags
@wallpapersarena · Post #3595 · 11.05.2022 г., 05:41
#Anonymous @WallpapersArena
Hashtags