forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
559 stars 227 forks source link

fix initial cache memory allocation #702

Closed kutschm closed 10 years ago

kutschm commented 10 years ago

Initial cache allocation fix:

So we are basically estimating and allocating the initial map size now as: max(conf.Min_CACHE_SIZE, min(conf.Max_CACHE_SIZE, estimated_Map_Size));