Jean-Michel Feurprier

LAMP Web Architect

Main menu

Skip to primary content
Skip to secondary content
  • Home

Category Archives: design patterns

Improving performance with return values caching

Posted on February 4, 2009 by
5

Many functions (and methods) in a project will often provide the same return value for the same arguments, like:

  • mathematical functions:
function SomeMaths($x)
{
	return $x + pow($x, 3.2) - cos($x);
}
  • functions which retrieve content from a file:

Continue reading →

Posted in concepts and principles, design patterns, php, tips and tricks | Tagged caching, how-to, optimization, php, profiling | 5 Replies

Categories

  • concepts and principles
  • design patterns
  • php
  • php5
  • tips and tricks
  • tools

Recent Posts

  • SVN trunk, branches and tags
  • method_exists() vs. is_callable()
  • Simple introduction to SVN externals
  • Improving performance with return values caching

Archives

  • February 2010
  • January 2010
  • December 2009
  • February 2009

Blogroll

  • Invisible to the eye A journey in web development, [computer] science, engineering: getting to know what lies under the hood.
  • MySQL Performance Blog The Percona Team blog dedicated to performance and optimization for MySQL, InnoDB, XtraBackup, XtraDB, and related technologies.

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress