Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|LumpCache: Replaced array void* datas with a vector of Cache…
…Record 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.
- Loading branch information
1 parent
c025cd5
commit 5415a1b
Showing
1 changed file
with
118 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters