Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 4 and Version 5 of LRUCache

Show
Ignore:
Author:
jcc7 (IP: 192.149.244.9)
Timestamp:
11/13/07 17:35:36 (17 years ago)
Comment:

formatting

Legend:

Unmodified
Added
Removed
Modified
  • LRUCache

    v4 v5  
    22 
    33 
    4 ==Warnings & Limitations:== 
     4== Warnings & Limitations == 
    55 
    66nodeId is kept as a ushort. When the maximum nodeId is too large, the entire cache is renumbered.  This causes use history to be lost at that point.  I estimate that this will be infrequent, and not a significant loss of efficiency, but it can result in more recently used members being forgotten before less frequently used members.