• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

  1. in expireElements(), avoid loading the element from the file if there are no cache listeners to notify. This will speed up expiration process dramatically when there are no listeners. In my case - we NEVER have listeners and therefore incur quite a significant hit when the expriy thread is executing.

  2. RegisteredEventListener - this is picky I know, but… avoid calling iterator() (and an object allocation) if there are no listeners. Also - add method to support avoiding loading of element in expireElements() named RegisteredEventListeners.hasCacheEventListeners().

  3. Change flushSpool avoid copy of map into array using a simple reference swap and separate lock. This avoid memory copy and decreases lock time. Albeit, the time was already short - this just make it shorter. Sourceforge Ticket ID: 1570071 - Opened By: nobody - 3 Oct 2006 15:59 UTC

Comments

Sourceforge Tracker 2009-09-21

Logged In: YES user_id=693320

Applied to trunk. Will be in ehcache-1.2.4. Comment by: gregluck - 23 Oct 2006 09:59 UTC

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira