Questions tagged [pooling]

a container holds ready objects for clients, to reduce initialization time of expensive buffers or resources.

Commonly refers to network or database connection pools, or byte buffer pools.

239 questions
1
vote
2 answers

How does Java Future multithreading return result ?

I am still learning about using Future and Callable in Java. Stumble into this question: Say I have class: TaskWorker implements Callable { public String id; public TaskWorker(String id) { this.id = id; } public Documents call() trows…
javaWorker
  • 35
  • 2
  • 4
1
vote
1 answer

Spring - Ensure Thread Pooling

The question is How to ensure that we can control how many concurrent calls there can be towards any given system from Spring application? Secondary how to provide such functionality? Does Spring already has such mechanism? I have basic knowledge…
uncleMatuesz
  • 87
  • 1
  • 1
  • 10
1
vote
2 answers

Connection Pooling

May I know if the connection pooling is applicable also for the window base application and not just for web base? Please advice. Thanks
Bryan
  • 1,245
  • 5
  • 22
  • 37
1
vote
0 answers

keras: Dynamic number of LSTM chains for each example and then average pooling

I really appreciate if somebody can give a working code for the following scenario in keras: 1) EACH training/test example is represented as a SET of non related sequences of words. For instance, the example "no.1" may have 3 sequences, but example…
Farrokh M
  • 11
  • 2
1
vote
0 answers

How do I do max pooling on sift features

I want to use sparse local descriptors for image classification. the one step in sparse representation is max pooling. local descriptors like sift has 64 dimensions. I by densefeaturedetector function in opencv extract 1225 vectors from an image. I…
Babak
  • 11
  • 3
1
vote
0 answers

In pooling, is reusing a recently "recycled" object better than one that has been inactive for longer?

Consider the following scenario: An object pool is created with a thousand (1000) objects of a moderate instantiation and initialization weight. Of those, 800 are used in the application for a while. Then, 200 are no longer used, so they are…
CosmicGiant
  • 6,275
  • 5
  • 43
  • 58
1
vote
2 answers

How to use two objects from a pooled list in one script?

I am trying to understand object pooling. I am able to get the script to pull one object at a time, but I need to be able to pull three or more from the list at the same time. My object pooling script is big, so I don't really want to share the…
Tim Cooley
  • 749
  • 4
  • 19
  • 38
1
vote
2 answers

Is it ok to create and delete bodies infinitely?

I wan't to make an infinite side scrolling game using libgdx and box2d, to do that I would have to spawn chunks. Unlike before when I was just dealing with sprites I used to spawn sprites infinite times without problems by pooling and adding them to…
Kevin Bryan
  • 1,846
  • 2
  • 22
  • 45
1
vote
0 answers

Getting the connection pool error even when setting the connection string property Pooling to false

I am having some connection pool issues in my sharepoint application. Every time that my application tries to fetch some data from an SQL Server 2008 R2, I got this exception: "Timeout expired. The timeout period elapsed prior to obtaining a…
1
vote
0 answers

Java ByteBuffer pooling

Considering an application where you need a high-level API to return a ByteBuffer of any specified size, what is the most effective way to pool these buffers? Are there any examples? Thread safety is not a concern.
Jire
  • 9,680
  • 14
  • 52
  • 87
1
vote
1 answer

org.apache.tomcat.jdbc.pool.DataSource missing

i need your help with my code. I have a PoolConnector class with this code: package db; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import…
user3451793
  • 33
  • 1
  • 6
1
vote
1 answer

Apache Camel reading unread mail from gmail account

Just tried learning Apache Camel. I am trying to read gmail inbox unread mail. I got the code snippet while searching but not able to get success from it. if someone point out the mistake, PollingConsumer pollingConsumer = null; CamelContext…
Jayesh
  • 6,047
  • 13
  • 49
  • 81
1
vote
0 answers

Google App Engine php mysql connection optimization

We are trying to write a web backend using google app engine. We have several different pages but they have a lot of stuff in common. So far I've gotten our cost per average user per month down to about 9 cents, but I feel like that's still too…
1
vote
2 answers

ASP.NET connection pool question

Does the same connection string used on two different physical servers hosting different web applications that talk to the same database draw connections from the same connection pool? Or are pooled connections confined to at the application…
James Evans
  • 187
  • 1
  • 1
  • 8
1
vote
0 answers

PoolingHttpClientConnectionManager allows only limited connection to the host at a time

My application's requirement is to run on multithreaded environment. I am using PoolingHttpClientConnectionManager to maintain pool of 20 connections per route. PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(); …
Sumanjeet
  • 21
  • 1