PHP

PHP Memoization

  • By Ryan
  • 08:36 pm, Nov 19, 2010

One of my favorite optimization techniques is memoization. Memoization is a technique used to store commonly used calculations in memory.Let's say we are working with PHP and using object oriented programming. We are working on an application that has a peopleclass. The people class has 3 properties called name, age, and location. <?php class people { public $name; public $age; public $location; } ?> We would then create methods to retreive the parameters ... Read More

Recent Articles