Archive for the ‘flyweight’ Category

Flyweight Design Pattern and Immutability: A Perfect Match

Posted on: No Comments
The flyweight pattern is a relatively unknown design pattern in PHP. The fundamental principle behind the flyweight pattern is that memory can be saved by remembering objects after they have been created. Then, if the same objects need to be used again...