Apc installed with the latest APC-3.0.18.tgz, decompress, and enter the directory apchttp: // pecl.php.net/package/APC/usr/local/php/bin/phpize (production configure file ). /Configure -- enable-apc-mmap -- with-p EN ""
Improve PHP performance by caching database results. As we all know, the results of cache database queries can significantly shorten the script execution time and minimize the load on the database server. If the data to be processed is basically
PHP performance optimization summary. 1. for many code files, especially including many containing files (includeorrequire ). They need to spend more time and parse and generate intermediate code. 2. even if the PHP code file is not 1, many code
This article mainly introduces how to use XHGui to test the PHP performance. The example demonstrates the Ubuntu-based operating system. if you need it, refer to Profiling as a technology used to observe the program performance, it is very suitable
Introduction to how to improve PHP performance by caching database results. However, when the database you are using is located on a different computer from the Web server, it is always a good way to cache the database result set. However, the best
PHP performance optimization preparation illustration PEAR installation. What is PEARPEAR is the abbreviation of PHP extension and application library (thePHPExtensionandApplicationRepository. It is a code repository for PHP extensions and
In view of the forum members of Nginx, Apache and their respective ways to run PHP performance questions, I reproduced from abroad and translated an article and post a point of their own views, I hope to be helpful.
Original: http://blog.a2o.si/2009/
1. Upgrade PHP to the latest version
The simplest way to improve performance is to constantly upgrade and update the PHP version.
2. Using analyzersThere are a lot of reasons why websites are slow, and Web applications are extremely complex and
The predecessor of Zend Opcache was Zend Optimizer + (Zend o+), with PHP5.5 Zend in the release of O+, and renamed: Zend Opcache. However, the default is not enabled, you can enable in the INI file.According to statistics, Zend Opcache performance
XHProf is a lightweight php performance analysis tool open-source by facebook. It is similar to Xdebug, but has lower performance overhead and can be used in production environments, you can also enable the program to determine whether to configure
PHP Language performance optimization optimization what?As shown, PHP directly executes the opcode, so we minimize scanning and transcoding parsing. This is our first optimization point, try to use PHP built -in functions instead of our code to
What the hell is the Magic method?Magic method, also called Devil function. As long as you learn that PHP knows what a magic method is, a magic method is a function that executes automatically under certain conditions.PHP's Magic method mainly has
PHP Optimization for PHP optimization is mainly related to the php.ini in the main parameters of the reasonable adjustment and settings, the following we will look at some of the php.ini in the performance of a large number of parameters should be
Several of the extensibility principles described below are caching opcode (opcode caching principle view http://www.cnblogs.com/JohnABC/p/4531029.html):Zend Opcache: Renamed by optimizer+, buffered PHP data into memory to avoid duplication of
Php performance efficiency optimizationRecently, I learned to write PHP programs on my own. Because the company has high requirements on program running efficiency and I am a newbie, it is very important to pay attention to the program efficiency at
PHP Performance (memory) issues
Author: zccst
Encounter such a problem
$RETARR = Array (); Order of magnitude: 10/Hundred
One of the fields is a model, an array of eligible models
$MODELARR = Array (); Order of magnitude: thousand
One of the
Ask a moderator a PHP performance problem, I am a love to learn the child. Online, etc.
That's it.
There can be up to 20,000 records of data in a table in MySQL
Front desk a fuzzy query function like on these 20,000 queries
I Baidu a bit, said is
Shown as 100 concurrent, request 1000 times Destination AddressTo testThe most important two parameters:requests per second : Receive requests per second, where 101 requests per second Time perrequest: How long a request takes, here is 9
0. It is quicker to use single quotes instead of double quotes to contain strings . Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
Since the advent of PHP with its good cross-platform, efficient development mechanism has a large share of the web domain. Because it is running the mechanism is the script interpretation after the execution of the relevant resources will be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service