Changes between Version 1 and Version 2 of MemoryCache


Ignore:
Timestamp:
Aug 26, 2013 6:27:45 AM (10 years ago)
Author:
w.bielawski@samsung.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MemoryCache

    v1 v2  
    5151MemoryCache keeps references to resources in three different structures:
    5252
    53 * m_resources - a URL-based map of all resources kept in cache
     53* m_resources - a LRU-based map of all resources kept in cache
    5454* m_allResources - Vector of LRU lists with fixed size (32). Basing on CachedResource access counter a resource is located in appropriate list. Prune procedure will start evict beginning from last recently used resources.
    5555* m_liveDecodedResources - live resources with decoded data. If stored resources significantly exceeds total capacity MemoryCache tries to remove decoded data one by one until boundary assumptions will be fulfilled or there would be nothing redundant data to release.