Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
365d1f5b
Commit
365d1f5b
authored
Jan 25, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more info to Performance Tuning
parent
5a84b812
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
performance.md
docs/guide/performance.md
+19
-0
No files found.
docs/guide/performance.md
View file @
365d1f5b
...
...
@@ -7,6 +7,16 @@ on your application out of the box and can be fine-tuned further for production
environment. As for the application, we'll provide some of the best practices
along with examples on how to apply them to Yii.
Preparing environment
---------------------
A well configured environment to run PHP application really matters. In order to get maximum performance:
-
Always use latest stable PHP version. Each major release brings significant performance improvements and reduced
memory usage.
-
Use
[
APC
](
http://ru2.php.net/apc
)
for PHP 5.4 and less or
[
Opcache
](
http://php.net/opcache
)
for PHP 5.5 and more. It
gives a very good performance boost.
Preparing framework for production
----------------------------------
...
...
@@ -215,3 +225,12 @@ request later if there's no need for immediate response.
-
queues + handlers.
TBD
### If nothing helps
If nothing helps, never assume what may fix performance problem. Always profile your code instead before changing
anything. The following tools may be helpful:
-
[
Yii debug toolbar and debugger
](
module-debug.md
)
-
[
XDebug profiler
](
http://xdebug.org/docs/profiler
)
-
[
XHProf
](
http://www.php.net/manual/en/book.xhprof.php
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment