mix/object-pool
Object pooling for PHP and Laravel: reuse expensive-to-create objects instead of allocating new ones, cutting allocation and garbage-collection overhead in hot paths. Configurable pool sizing with framework-friendly integration.
mix/object-pool provides a lightweight object pooling layer for Laravel and PHP applications, allowing expensive-to-create objects to be reused instead of rebuilt repeatedly. It reduces allocation overhead and helps keep performance predictable in workloads that frequently acquire short-lived objects. Pools integrate with Laravel’s container and support controlled acquisition and release of instances.
How can I help you explore Laravel packages today?