If I use object pool design pattern, do I have to create the objects before that anyone needs them, or that I can create every object only when someone needs it, and then (after he used it), put it in the pool? Thus, to start with an empty pool, and fill it over time, and create objects only when someone needs to use them, and they are not currently in the pool?
Aucun commentaire:
Enregistrer un commentaire