JSPM

@rbxts/goodpool

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q28929F
  • License ISC

A simple, flexible, and lightweight object pooling module for Roblox that works with any type of object, not just Instances.

Package Exports

  • @rbxts/goodpool
  • @rbxts/goodpool/lib/init.luau

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/goodpool) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GoodPool

A simple, flexible, and lightweight object pooling module for Roblox that works with any type of object, not just Instances.

View docs

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.