Carrot2

Consider wrapping Ehcache entries with SoftReferences

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Framework Core
  • Labels:
    None

Description

To make Ehcache caching more memory-friendly, consider wrapping the Element}}s we store in the cache with {{SoftReference}}s, which would enable the garbage collector to reclaim cached memory if needed. One strategy for making this work with the {{SelfPopulatingCache we use would be to test the contents of the SoftReference on each get and if the contents is empty, removing the element from the cache and requesting it again, which should create a new one through the SelfPopulatingCache's factory.

Issue Links

Activity

Hide
Stanisław Osiński added a comment -

3.2.0 release will concentrate on processing language infrastructure, bug fixes and build script improvements.

Show
Stanisław Osiński added a comment - 3.2.0 release will concentrate on processing language infrastructure, bug fixes and build script improvements.
Hide
Stanisław Osiński added a comment -

The 3.4.0 release will concentrate on a native C# API.

Show
Stanisław Osiński added a comment - The 3.4.0 release will concentrate on a native C# API.
Hide
Stanisław Osiński added a comment -

Tentative planning of the 3.5.0 release.

Show
Stanisław Osiński added a comment - Tentative planning of the 3.5.0 release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
4h
Original Estimate - 4h
Remaining:
4h
Remaining Estimate - 4h
Logged:
Not Specified
Time Spent - Not Specified