Provide a memory pool to store objects created by time consuming operations (i.e., get from db) and will be used in the near future.
Provide:
push an object to the pool
pre-check if a demanded object is in the pool. If yes, directly get it, or else create the object from time consuming operations and push it to the pool
Provide a memory pool to store objects created by time consuming operations (i.e., get from db) and will be used in the near future.
Provide:
push an object to the pool
pre-check if a demanded object is in the pool. If yes, directly get it, or else create the object from time consuming operations and push it to the pool