Object Pooling
-
how can v use object pooling concept in our application and wat is need of Object pooling in .net :confused:
-
how can v use object pooling concept in our application and wat is need of Object pooling in .net :confused:
-
You can have a look at this article to make that concept clear: http://www.codeproject.com/csharp/ObjectPooling.asp[^]
Best Regards, Apurva Kaushal
k tanx but can u explain little more abt object pooling Regards Raja:~
-
k tanx but can u explain little more abt object pooling Regards Raja:~
an object pool is a set of initialised objects that are kept ready to use, rather than allocated and destroyed on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When the client has finished with an object, it returns it to the pool, rather than destroying it. Object pooling can offer a significant performance boost; it is most effective in situations where the cost of initializing a class instance is high, the rate of instantiation of a class is high, and the number of instantiations in use at any one time is low. Source google. :)
Best Regards, Apurva Kaushal
-
an object pool is a set of initialised objects that are kept ready to use, rather than allocated and destroyed on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When the client has finished with an object, it returns it to the pool, rather than destroying it. Object pooling can offer a significant performance boost; it is most effective in situations where the cost of initializing a class instance is high, the rate of instantiation of a class is high, and the number of instantiations in use at any one time is low. Source google. :)
Best Regards, Apurva Kaushal
Would be nice if you can share any example. I am new to this world. Amit