Skip to content

Commit 4339289

Browse files
Copilotsamdark
andcommitted
Revert .gitignore changes and move opcache optimization to separate code section
Co-authored-by: samdark <[email protected]>
1 parent b422ef4 commit 4339289

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ Thumbs.db
1616
.DS_Store
1717

1818
# po4a .mo files
19-
*.mo
20-
21-
# Vale temporary styles
22-
.github/styles/Microsoft/
19+
*.mo

guide/en/tutorial/performance-tuning.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ A well-configured PHP environment is important. To get maximum performance:
1515
- [Tune `realpath()` cache](https://github.com/samdark/realpath_cache_tuner).
1616
- Make sure [XDebug](https://xdebug.org/) isn't installed in the production environment.
1717
- Try [PHP 7 preloading](https://wiki.php.net/rfc/preload).
18+
19+
## Optimizing your code <span id="optimizing-code"></span>
20+
21+
Beyond environment configuration, there are code-level optimizations that can improve your application's performance:
22+
1823
- Use fully qualified function names with leading backslashes to optimize opcache performance.
1924
When calling global functions from within a namespace, PHP first searches in the current namespace
2025
before falling back to the global namespace. Adding a leading backslash (e.g., `\count()` instead of `count()`)

0 commit comments

Comments
 (0)