« Previous | Next » 

Revision ac0930b9

IDac0930b925974d3bb1174cf3922bafc4fbe50596
Parent 8a70e415
Child f1048938

Added by Iustin Pop almost 16 years ago

Cache some jobs in memory

This patch adds a caching mechanisms to the JobStorage. Note that is
does not make the memory cache authoritative.

The algorithm is:
- all jobs loaded from disks are entered in the cache
- all new jobs are entered in the cache
- at each job save (in UpdateJobUnlocked), jobs which are not
executing or queued are removed from the cache

The end effect is that running jobs will always be in the cache (which
will fix the opcode log changes) and finished jobs will be kept for a
while in the cache after being loaded.

Reviewed-by: imsnah

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences