Thursday, March 03, 2005

I recently ran across a nice project that has some support for memory pools in java: Since it works with the current JVM you need to do a bit of work. Instances of a pool context are created and bound to the current thread. Then, any objects created using a special factory are actually allocated in the pool. When the thread leaves the pool context the objects are recycled.

No comments: