scalability

Fast code: Speed and Scalability in PHP applications

Continuing on the series, the next item on the list seems to be the mistake I see the most--putting slow code in loops, loading up things that don't need to be loaded, making simple requests expensive.

In terms of processing time, it's expensive to open a database connection. It's expensive to connect to another computer. It's expensive to load up a big framework to respond to a single request. It's relatively cheap to retrieve a pre-constructed page out of a cache.

The single biggest mistake I see that kills performance in code is putting database calls inside a loop.

Syndicate content

Freelock Blog Posts

Customer Feedback

If you are a user of business software and are interested in finding out more about open source options for your business or office, you may be a little bit frustrated about the lack of introductory-level information on this topic...

The best single source of such information that I have found so far is John Locke's "Open Source Solutions for Small Business Problems." It provides an excellent introduction to the concepts, advantages, and disadvantages behind open-source.

Julius Walczynski
Sourcio user review

About Freelock

We are located in the Fremont neighborhood of Seattle, WA. 3800 Woodland Park Ave. N. Seattle, WA 98103  USA [P] 206.577.0540 Contact Us | Site Map Get Updates ©1995-2011 Freelock Computing