Tag Archives: performance

XHR / AJAX Performance – GET or POST?

During the summer of 2009 I posted about XMLHttpRequest (XHR) using multiple packets for HTTP POST, but HTTP GET requests only used one (in most cases). This led to several people recommending HTTP GET requests for AJAX when possible, to … Continue reading

Posted in Posts | Tagged , , , , | Leave a comment

Slides: Anatomy of a PHP Request

Here are the slides from my presentation last week at UPHPU – Anatomy of a PHP Request View more presentations from josephscott. I added it to my slides page.

Posted in Posts | Tagged , , , | Leave a comment

Efficient PHP: Don't Abuse dirname( __FILE__ )

Every now and then I run across a chunk of PHP code at the top of a file that looks something like this: require dirname( __FILE__ ) . ‘/path/to/something.php’; require dirname( __FILE__ ) . ‘/path/to/another.php’; require dirname( __FILE__ ) . … Continue reading

Posted in Posts | Tagged , , | 8 Comments

Thinking Clearly About Performance

Cary Millsap has a great paper out – Thinking Clearly About Performance. It has reminded me how critical details can be in measuring performance, throughput, response time, efficiency, skew and load. The beauty of this paper isn’t that it has … Continue reading

Posted in Posts | Tagged , | Leave a comment

Recommended Reading: Steve Souders, High Performance Web Sites

Although I link to various sites when something interesting comes up, I haven’t done a good job of recommending people and blogs to follow. Time to fix that. Kicking off my recommended reading list is the High Performance Web Sites … Continue reading

Posted in Posts | Tagged , , | 4 Comments

PHP Count Performance

There was a question on the Utah PHP user group email list recently that went something like this: is calling count() on an array once and storing the result in a variable better/faster than calling count() multiple times? I’d always … Continue reading

Posted in Posts | Tagged , , , | 4 Comments

XMLHttpRequest (XHR) Uses Multiple Packets for HTTP POST?

A recent Think Vitamin article, The Definitive Guide to GET vs POST, mentioned something that I hadn’t seen before about XMLHttpRequest (XHR). Their Rule #4 states: When using XMLHttpRequest, browsers implement POST as a two-step process (sending the headers first … Continue reading

Posted in Posts | Tagged , , , , | 20 Comments