@rusembsg · Post #3571 · 10.10.2024 г., 02:42
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
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
Пребарај: #eas
@rusembsg · Post #3571 · 10.10.2024 г., 02:42
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
Hashtags
@aseanrussia · Post #1908 · 19.10.2025 г., 10:28
🗓 On October 17, the Russian delegation comprising representatives from the Ministry of Energy and the Ministry of Foreign Affairs 🇷🇺 — took part in the 19th East Asia Summit (#EAS) Energy Ministers’ Meeting held in Kuala Lumpur 🇲🇾. 🔹️The discussions focused on enhancing regional energy connectivity and resilience, with participants exchanging views on practical cooperation, energy transition pathways, and cross-border investments in energy development.
Hashtags
@aseanrussia · Post #1885 · 26.09.2025 г., 03:56
🗓 On September 25, the delegation of the Ministry of Economic Development of the Russian Federation 🇷🇺 took part in the 13th East Asia Summit (#EAS) Economic Ministers’ Meeting in Kuala Lumpur, Malaysia 🇲🇾. 🔹️The Meeting underscored the importance of fostering closer economic cooperation between ASEAN and the EAS Participating Countries and highlighted the importance of engaging in constructive dialogue, open communication, and collaboration to address challenges. 🔹️Participants also discussed possible areas for cooperation to support efforts to drive robust economic growth in the region.
Hashtags
@rusconct · Post #1850 · 11.10.2024 г., 07:20
🇷🇺 Russia's Foreign Minister Sergey Lavrov takes part in the 19th East Asia Summit (#EAS) 📍Vientiane, October 11, 2024
Hashtags
@aseanrussia · Post #1847 · 10.09.2025 г., 04:59
🗓 On September 10, Russia's Alternate SOM Leader, Director-General of the Department of Asian and Pacific Cooperation of the Russian MFA Mr. Alexey Ovchinnikov🇷🇺 participated in the East Asia Summit Senior Officials' Meeting (#EAS SOM) in Port Dickson, Malaysia 🇲🇾. 🔹️Senior officials discussed issues related to preparation for the EAS Summit in October and joint efforts on strengthening tangible cooperation within the EAS. #EAS
Hashtags
@aseanrussia · Post #1777 · 11.07.2025 г., 04:56
📸 Russia's Foreign Minister Sergey Lavrov takes part in the 15th meeting of the Foreign Ministers of the countries participating in the East Asia Summit (#EAS) 📍 Kuala Lumpur, July 11
Hashtags
@aseanrussia · Post #1343 · 23.10.2024 г., 12:11
🎙 Excerpts from the Comment by Russia's Foreign Ministry Spokeswoman Maria Zakharova on the developments around the East Asia Summit (#EAS). https://telegra.ph/Comment-by-Russias-Foreign-Ministry-Spokeswoman-Maria-Zakharova-on-the-developments-around-the-East-Asia-Summit-10-23
Hashtags
@aseanrussia · Post #1308 · 18.10.2024 г., 09:02
Ambassador of Russia to ASEAN H.E. Mr. Evgeny Zagaynov 🇷🇺 💬 "Attempts to politicize the East Asia Summit (#EAS) agenda are detrimental to the regional cooperation". https://m.antaranews.com/berita/4400313/rusia-ada-upaya-masukkan-geopolitik-di-ktt-asia-timur?utm_source=antaranews&utm_medium=mobile&utm_campaign=latest_category
Hashtags
@aseanrussia · Post #1297 · 11.10.2024 г., 04:21
🇷🇺 Russia's Foreign Minister Sergey Lavrov takes part in the 19th East Asia Summit (#EAS) 📍Vientiane, October 11, 2024
Hashtags
@aseanrussia · Post #1283 · 10.10.2024 г., 03:24
🛬 Russia’s Foreign Minister Sergey Lavrov arrives in Vientiane (Laos) to take part in the 19th East Asia Summit 🌏#EAS
Hashtags
@aseanrussia · Post #1281 · 23.09.2024 г., 10:06
🗓 On September 21, the delegation of the Ministry of Economic Development of the Russian Federation 🇷🇺 took part in the 12th East Asia Summit (#EAS) Economic Ministers’ Meeting in Vientiane, Lao PDR 🇱🇦. 🔹️The Meeting exchanged views on the global and regional economic developments and discussed how EAS Participating Countries can take concerted actions to mitigate global economic challenges. 🔹️Participants also discussed possible areas for cooperation to support efforts to drive robust economic growth in the region.
Hashtags
@aseanrussia · Post #1235 · 23.08.2024 г., 03:16
🗓 On August 22, Russian delegation 🇷🇺 took part in the East Asia Summit Senior Officials' Meeting (#EAS SOM) in Luang Prabang, Lao PDR 🇱🇦. 🔹️Participants discussed the preparation for the upcoming 19th EAS Summit in October 2024 in Vientiane and exchanged views on the EAS agenda. 🇷🇺 Russian Ambassador to ASEAN H.E. Evgeny Zagaynov underlined Russia's unwavering support of the Lao PDR during its ASEAN Chairmanship and emphasized the need to further promote tangible cooperation within the EAS in particular in such areas as fight against infectious diseases and tourism.
Hashtags