homepage Welcome to WebmasterWorld Guest from 107.20.34.144
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

This 35 message thread spans 2 pages: < < 35 ( 1 [2]     
Got a PHP performance tuning tip?
Habtom

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 12804 posted 5:41 am on May 10, 2006 (gmt 0)

PHP performance tunning tips. Please add to the list.

1. Reduce the number of connections to the DB.
2. Use (for and while) loops wisely
3. Anybody?

Hab

 

Habtom

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 12804 posted 8:21 am on May 30, 2006 (gmt 0)

arrays vs a number of variables to hold data? What is the speed difference?

Hab

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 12804 posted 4:23 pm on May 30, 2006 (gmt 0)

I think that would really depend on what you are doing with them. At some point in the eqation there would also be 'ease of use'.

FalseDawn

5+ Year Member



 
Msg#: 12804 posted 5:17 pm on May 30, 2006 (gmt 0)

The biggest speedup I obtained was from reducing the number of "includes" and "requires".
Each one of these is a physical disk access, and whilst a good caching and optimizing module can help, I still realized huge parse time decreases by getting rid of as many of these as possible.

Far more significant than worrying about relatively inconsequential things like single vs double quotes for example.

FalseDawn

5+ Year Member



 
Msg#: 12804 posted 5:20 pm on May 30, 2006 (gmt 0)

Next on my list would be optimizing your database - using indexes and making sure your queries use them. Benchmark long running queries to see if they can be rewritten. Never assume that even a relatively simple query can't be improved.

Turning on the query cache helps, too, if you are using MySQL, and making sure the database configuaration parameters are optimized for your particular situation.

HeadBut

10+ Year Member



 
Msg#: 12804 posted 4:29 pm on Jun 8, 2006 (gmt 0)

Is there any time savings with alternative syntax? Anyone done any testing? Is there a good site to see these type of test results?

This 35 message thread spans 2 pages: < < 35 ( 1 [2]
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved