Garbage Collection
Each object created in an object-oriented programming (OOP) language requires a particular allocation of system memory. Each object's allocation of memory varies, but the more objects created, the more memory consumed, and the fewer resources remain available. When objects are no longer used by the system, they're gathered and destroyed in order to reclaim the memory they consumed.
Compartmentalization makes a system more flexible and modular but increases the number of objects used in an application. Using design patterns to achieve a flexible and loosely coupled architecture enables code reuse and polymorphism. However, the collaborations among objects that allow for such flexibility require attention to memory management. ...
Get AdvancED ActionScript 3.0: Design Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.