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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -