object-pooling

COM Object Pooling and .NET Web Service

Hello I have a COM object which I need to access from my .NET Web Service. I know of the whole STA/MTA thing - so my COM object would be converted to be MTA and have no global state (while not being multi-threaded itself). If I set this up as a COM+ server, and specify an object pool, does this mean that for each web service thread it...

object pooling framework

any suggestions for a C# object pooling framework? requirements are multi-thread support and a pool size limit, when a thread requests an object but none is available, it's blocked until one of the other objects is freed. ...

How does one manage object pooling in Spring?

It's my understanding that in Spring, all objects are treated by default as singletons. If singleton is set to false, then a new object will be served at each request. But what if I wanted to pool objects? Say set a range from a min of 1 to a max of 10 instances? Is this possible using Spring? ...

Object pool vs. dynamic allocation

When should one prefer object pool over dynamically allocated objects? I need to create and destroy thousands of objects per second. Is it by itself enough to decide in favor of object pool? Thanks. ...

How to create custom object pools in Java application server

Suppose I have a message driven bean (MDB) in a Java application server. The MDB receives a message from a JMS queue and passes it to a message processor. In my case, a message processor is an extremely heavy weight object that requires extensive initialization so I don't want to create a new one to handle each message. Instead I would l...

Is there a general-purpose object pool for .NET?

I have a class that is expensive to construct, in terms of time and memory. I'd like to maintain a pool of these things and dispense them out on demand to multiple threads in the same process. Is there a general-purpose object pool that is already tested and proven? (I don't want COM+ pooling.) ...

Object pooling: howto

I need to implement a pool of Sessions that are returned by an external system, so that I can reuse them quickly as soon as one is needed (creating a Session takes a while). I've worked with datasource to create a pool of database connections (DBCP from Apache), and it was an implemented solution. What do we use in a general case to poo...

boost object_pool construct method

I'm keen on using boost's object_pool class for memory re-use for a set of video frames. boost::object_pool< VideoFrame > FramePool; Now, the VideoFrame class has two constructors. The first version of the constructor takes 4 arguments while the second version takes 6 arguments/parameters. For every "new" video frame that is allocat...

Object pooling in Objective-C

Is there a nice way to do this in Objective-C, or do I have to write my own tedious logic? I'm creating and destroying a little of little state objects per frame in an iPhone game. It would be nice if I could just reuse objects from a pool. ...

Custom JSP Tag processor is caching a dated property, so the page shows old data and don't update, how to avoid this?

I made a custom jsp tag that search a historical value on a database an render it on the page. The attributes that the tag requires are the variable name and the date. The problem is that the 'date' property changes according clock move on ('date' points always to the last hour), but the JSP Tag processor's (jasper2) pooling system don'...

Can't find a modern Implementation of Object Pool in Java

I'm looking for a modern implementation of an object pool in Java. I can see the apache commons one, but to be honest, I'd rather one that uses generics, and the concurrency stuff from more recent versions of java. Does the commons pool really work well? The code looks pretty, erm, ugly. I'd need something that allows custom liveness v...

How to implement an Object Pool for Flex Data/Item Renderers

You can hook into the creation of Flex 4 item renderers easily enough (through itemRenderer, or itemRendererFunction) allowing you to pull renderers from a custom object pool, but how would you put those renderers back into the pool? I understand that layout virtualization does a form of object pooling, but I'd like a way to hook in to ...

Which object pool backing store to choose?

Hello, In our C# (.NET 4.0) application, we allocate and de-allocate a lot of memory, in different size chunks. We want to move to an object pool, to improve performance. We implemented an object pool already and saw some performance improvement. We're currently using a stack-based backing store. Other possible alternatives are, queue ...