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
Post a Comment