User login

performance

Use echo instead of print in themes for speed?

Hat tip to RobLoach who noted this in the #drupal IRC channel-- if we want to squeeze hundredths of a millisecond more out of our Drupal modules and themes, we should use echo instead of print for getting the data to the screen.

UPDATE: The PHP developers don't recommend switching from print to echo for speed reasons, suggesting that the difference can be dependent on the setup of your environment.

Random more useful PHP code speed improvements:

Boost caching: what refreshes it and how?

A normal (node) page triggers the Drupal-integrated Boost cache to expire and replace the page whenever you edit it. Editing a view unfortunately does not have such triggers. In this case the views are attached to a node, so simply resaving the node rebuilds the cache.

In most cases the view itself will not be modified, rather, you will add or edit a node associated with a view which also refreshes the cache for that views pages. (Note this takes a bit of processing to look up, and i don't think it will apply for blocks.)

Benchmarking Drupal

How to benchmark Drupal

Benchmarking Drupal code
http://drupal.org/node/79237

catch benchmarks
http://civicactions.com/blog/2009/feb/10/profiling_drupal

Syndicate content