Project

General

Profile

« Previous | Next » 

Revision 5415a1b1

Added by danij about 12 years ago

Refactor|LumpCache: Replaced array void* datas with a vector of CacheRecord

As the lump datas use Zone-allocated memory and given the need of
an address to track "user" status of said data - use a thin wrapper
object (named CacheRecord) so that we can use C++ delete directly
on the object without worrying about updating data user pointers
(CacheRecord's destructor hides this messiness).

Also, defer the allocation of the data cache itself until the first
datum is inserted into the cache.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences