Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how the object pool can improve performance #305

Open
petk opened this issue Jun 18, 2018 · 1 comment
Open

Explain how the object pool can improve performance #305

petk opened this issue Jun 18, 2018 · 1 comment

Comments

@petk
Copy link
Member

petk commented Jun 18, 2018

https://php.earth/docs/php/ref/oop/design-patterns/object-pool

@0xcrypto
Copy link

At https://sourcemaking.com/design_patterns/object_pool I read,
"The Object Pool lets others "check out" objects from its pool, when those objects are no longer needed by their processes, they are returned to the pool in order to be reused.

However, we don't want a process to have to wait for a particular object to be released, so the Object Pool also instantiates new objects as they are required, but must also implement a facility to clean up unused objects periodically."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants