GoodPool
Generic Object Pooling
GoodPool is fully generic, allowing you to pool any type of object. Tables, custom objects, instances, and more can all be reused efficiently.
Roblox Instance Support
GoodPool includes built-in helpers for pooling Roblox Instances. Easily clone, reuse, and reset instances without constantly allocating new ones.
Lightweight and Fast
Designed for performance, GoodPool uses a minimal implementation with zero dependencies and efficient internal storage.
Why GoodPool?
In many Roblox projects, repeatedly creating and destroying objects can cause unnecessary allocations and performance overhead. Object pooling solves this by reusing objects instead of constantly creating new ones.
GoodPool provides a minimal and generic pooling system where you define:
- how objects are created
- how objects are initialized when acquired
The module then handles the pooling logic for you.
Features
- Generic Pooling: Works with any object type.
- Lightweight: Minimal overhead and simple API.
- Flexible: Define custom creation and initialization logic.
- Reusable: Helps reduce allocations and improve performance.