473,382 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Tweaking PHP.INI for maximum performance

I would like to know any configurations to speed up PHP's execution. I
have increased the memory limit and decreased the amount of extensions
loaded, but do you know anything else?

Sep 14 '07 #1
5 3008
On Sep 14, 12:13 pm, RageARC <rage...@gmail.comwrote:
I would like to know any configurations to speed up PHP's execution. I
have increased the memory limit and decreased the amount of extensions
loaded, but do you know anything else?
Probably has less to do with settings in php.ini than it does with
your code. Have you run into specific performance problems? If you
haven't then you're wasting your time. Read #5 from this article:

<http://www.ibm.com/developerworks/li...-code/?ca=dgr-
FClnxw01linuxcodetips>
Sep 14 '07 #2
..oO(RageARC)
>I would like to know any configurations to speed up PHP's execution. I
have increased the memory limit and decreased the amount of extensions
loaded, but do you know anything else?
If you experience performance issues, use a profiler to check your code
for bottlenecks. Have a look at the Xdebug extension (can be installed
from PECL).

http://xdebug.org/

Micha
Sep 14 '07 #3
Nope, no bottlenecks, I just want to execute a huge loop (Billions of
times) and I want to execute it as swiftly as possible.

Sep 14 '07 #4
On Fri, 14 Sep 2007 19:04:40 +0200, RageARC <ra*****@gmail.comwrote:
Nope, no bottlenecks, I just want to execute a huge loop (Billions of
times) and I want to execute it as swiftly as possible.
On the risk of getting offtopic: I'd say a better tool for that kind of
job might be C++, possibly getting it's variables from a PHP script..

--
Rik Wasmus
Sep 14 '07 #5
Yes I could use C++ but the fact is I'm not too good at it, and as I
already have my loop in PHP, it would best if I used it.

Sep 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like...
9
by: Till Crueger | last post by:
Hi, I have to implement some simple sorting algorithm. I am NOT asking for you to do my homework, but my question is rather on how to store the integers. I recall reading once in here that there...
1
by: Bilo | last post by:
Hi, I use trackbar.Maximum in a timer. Is there any performance difference to get it via trackbar.Maximum or first store the value in a int integer and use that? Or is it cshap internal the same?
1
by: Dominic | last post by:
I'd like to tune the performance of my application in a web garden. Our server has dual processors. Is there any guideline to set this "maximum number of worker processes" for web garden? In my...
2
by: ari | last post by:
Hi! Normally Google helps a lot with these simple questions, but now I cannot get correct search words. So I try here: I have db2 udb 8.1 fix pack 6, and it is on windows 2003 server. -...
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
29
by: garyusenet | last post by:
I'm trying to investigate the maximum size of different variable types. I'm using INT as my starting variable for exploration. I know that the maximum number that the int variable can take is:...
2
by: Wayne | last post by:
Is there a "best practice" maximum number of controls that can be loaded on to a tab control before things start getting messy and sluggish? I'm asking for a "best practice" maximum number across...
3
by: Frank Rizzo | last post by:
I am trying to do some monitoring of some PerfMon counters and have a question. Does PerfMon figure out the Minimum, Maximum, Average values for each counter? Or are those values part of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.