Try my app Expense Manager @ google play and amazon store.

Sunday, July 1, 2012

Why is an Object Pool required

Why is an Object Pool required?

To enhance performance and reduce the load of creating new objects, instead re using existing objects stored in memory pool. 
Object Pool is a container of objects that are for use and have already been created. Whenever an object creation request occurs, the pool manager serves the request by allocating an object from the pool. This minimizes the memory consumption and system's resources by recycling and re-using objects. 
When the task of an object is done, it is sent to the pool rather than being destroyed. This reduces the work for garbage collector and fewer memory allocations occur.

No comments:

Post a Comment

Follow by Email

Google+ Badge