Skip to content

Commit 317c23c

Browse files
samdarkgithub-actions[bot]
authored andcommitted
Update translation
1 parent d268237 commit 317c23c

File tree

2 files changed

+109
-2
lines changed

2 files changed

+109
-2
lines changed

guide/po/tutorial_performance-tuning.md/ru/tutorial_performance-tuning.md.ru.po

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
9-
"POT-Creation-Date: 2025-09-04 11:19+0500\n"
9+
"POT-Creation-Date: 2025-09-05 07:23+0000\n"
1010
"PO-Revision-Date: 2025-09-04 11:19+0500\n"
1111
"Last-Translator: Automatically generated\n"
1212
"Language-Team: none\n"
@@ -63,6 +63,48 @@ msgstr ""
6363
msgid "Try [PHP 7 preloading](https://wiki.php.net/rfc/preload)."
6464
msgstr ""
6565

66+
#. type: Title ##
67+
#: en/tutorial/performance-tuning.md
68+
#, fuzzy, no-wrap
69+
#| msgid "Defining aliases <span id=\"defining-aliases\"></span>"
70+
msgid "Optimizing your code <span id=\"optimizing-code\"></span>"
71+
msgstr "Определение псевдонимов <span id=\"defining-aliases\"></span>"
72+
73+
#. type: Plain text
74+
#: en/tutorial/performance-tuning.md
75+
msgid "Beyond environment configuration, there are code-level optimizations that can improve your application's performance:"
76+
msgstr ""
77+
78+
#. type: Bullet: '- '
79+
#: en/tutorial/performance-tuning.md
80+
msgid "Look out for [algorithm complexity](https://en.wikipedia.org/wiki/Time_complexity). Especially give attention to `foreach` within `foreach` loops but look out for using [heavy PHP functions](https://stackoverflow.com/questions/2473989/list-of-big-o-for-php-functions) in loops as well."
81+
msgstr ""
82+
83+
#. type: Bullet: '- '
84+
#: en/tutorial/performance-tuning.md
85+
msgid "[Speeding up array_merge()](https://www.exakat.io/speeding-up-array_merge/)"
86+
msgstr ""
87+
88+
#. type: Bullet: '- '
89+
#: en/tutorial/performance-tuning.md
90+
msgid "[Move that foreach() inside the method](https://www.exakat.io/move-that-foreach-inside-the-method/)"
91+
msgstr ""
92+
93+
#. type: Bullet: '- '
94+
#: en/tutorial/performance-tuning.md
95+
msgid "[Array, classes and anonymous classes memory usage](https://www.exakat.io/array-classes-and-anonymous-memory-usage/)"
96+
msgstr ""
97+
98+
#. type: Bullet: '- '
99+
#: en/tutorial/performance-tuning.md
100+
msgid "Use fully qualified function names with leading backslashes to optimize opcache performance. When calling [certain global functions](https://github.com/php/php-src/blob/944b6b6bbd6f05ad905f5f4ad07445792bee4027/Zend/zend_compile.c#L4291-L4353) from within a namespace, PHP first searches in the current namespace before falling back to the global namespace. Adding a leading backslash (e.g., `\\count()` instead of `count()`) tells PHP to directly use the global function, avoiding the namespace lookup and improving opcache efficiency. This optimization is best implemented automatically using tools like [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) with the `native_function_invocation` rule."
101+
msgstr ""
102+
103+
#. type: Plain text
104+
#: en/tutorial/performance-tuning.md
105+
msgid "The above optimizations would give you a significant performance boost only if the code in question is executed frequently. That is usually the case for big loops or batch processing."
106+
msgstr ""
107+
66108
#. type: Title ##
67109
#: en/tutorial/performance-tuning.md
68110
#, fuzzy, no-wrap

guide/po/tutorial_performance-tuning.md/tutorial_performance-tuning.md.pot

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
10-
"POT-Creation-Date: 2025-09-04 11:19+0500\n"
10+
"POT-Creation-Date: 2025-09-05 07:23+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -77,6 +77,71 @@ msgstr ""
7777
msgid "Try [PHP 7 preloading](https://wiki.php.net/rfc/preload)."
7878
msgstr ""
7979

80+
#. type: Title ##
81+
#: en/tutorial/performance-tuning.md
82+
#, no-wrap
83+
msgid "Optimizing your code <span id=\"optimizing-code\"></span>"
84+
msgstr ""
85+
86+
#. type: Plain text
87+
#: en/tutorial/performance-tuning.md
88+
msgid ""
89+
"Beyond environment configuration, there are code-level optimizations that "
90+
"can improve your application's performance:"
91+
msgstr ""
92+
93+
#. type: Bullet: '- '
94+
#: en/tutorial/performance-tuning.md
95+
msgid ""
96+
"Look out for [algorithm complexity](https://en.wikipedia.org/wiki/"
97+
"Time_complexity). Especially give attention to `foreach` within `foreach` "
98+
"loops but look out for using [heavy PHP functions](https://stackoverflow.com/"
99+
"questions/2473989/list-of-big-o-for-php-functions) in loops as well."
100+
msgstr ""
101+
102+
#. type: Bullet: '- '
103+
#: en/tutorial/performance-tuning.md
104+
msgid ""
105+
"[Speeding up array_merge()](https://www.exakat.io/speeding-up-array_merge/)"
106+
msgstr ""
107+
108+
#. type: Bullet: '- '
109+
#: en/tutorial/performance-tuning.md
110+
msgid ""
111+
"[Move that foreach() inside the method](https://www.exakat.io/move-that-"
112+
"foreach-inside-the-method/)"
113+
msgstr ""
114+
115+
#. type: Bullet: '- '
116+
#: en/tutorial/performance-tuning.md
117+
msgid ""
118+
"[Array, classes and anonymous classes memory usage](https://www.exakat.io/"
119+
"array-classes-and-anonymous-memory-usage/)"
120+
msgstr ""
121+
122+
#. type: Bullet: '- '
123+
#: en/tutorial/performance-tuning.md
124+
msgid ""
125+
"Use fully qualified function names with leading backslashes to optimize "
126+
"opcache performance. When calling [certain global functions](https://github."
127+
"com/php/php-src/blob/944b6b6bbd6f05ad905f5f4ad07445792bee4027/Zend/"
128+
"zend_compile.c#L4291-L4353) from within a namespace, PHP first searches in "
129+
"the current namespace before falling back to the global namespace. Adding a "
130+
"leading backslash (e.g., `\\count()` instead of `count()`) tells PHP to "
131+
"directly use the global function, avoiding the namespace lookup and "
132+
"improving opcache efficiency. This optimization is best implemented "
133+
"automatically using tools like [PHP-CS-Fixer](https://github.com/"
134+
"FriendsOfPHP/PHP-CS-Fixer) with the `native_function_invocation` rule."
135+
msgstr ""
136+
137+
#. type: Plain text
138+
#: en/tutorial/performance-tuning.md
139+
msgid ""
140+
"The above optimizations would give you a significant performance boost only "
141+
"if the code in question is executed frequently. That is usually the case for "
142+
"big loops or batch processing."
143+
msgstr ""
144+
80145
#. type: Title ##
81146
#: en/tutorial/performance-tuning.md
82147
#, no-wrap

0 commit comments

Comments
 (0)