java - Best way to create a object pool if objects needs to load the same huge file for initialization -


does know way create pool of objects containing heavyweight objects?

i tried , works far, problem is, each object needs load same huge model file initialization (~200mb), initialization of pool takes around 2 , half minutes , takes lot of memory.

currently, have array of objects filled objects loop , know classes genericobjectpool, don't think make difference or wrong?

you can use object pooling api ( i;e apache api) may resolve problem.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -