Skip to content

Files

Latest commit

b84ed08 · Nov 20, 2013

History

History
This branch is 1009 commits behind DesignPatternsPHP/DesignPatternsPHP:main.

Prototype

Prototype

Purpose

To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it

Examples

  • Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM)