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

'hasOwnProperty' in javascript -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -