BIND 10 #535: Aggregate NSAS HashTable and LruList classes

BIND 10 Development do-not-reply at isc.org
Wed Jan 26 18:36:23 UTC 2011


#535: Aggregate NSAS HashTable and LruList classes
-------------------------------------+-------------------------------------
           Reporter:  stephen        |                      Owner:
               Type:  enhancement    |                     Status:  new
           Priority:  minor          |                  Milestone:  R-Team-
          Component:  resolver       |  Task-Backlog
          Sensitive:  0              |                   Keywords:
Add Hours to Ticket:  0              |  Estimated Number of Hours:  0
        Total Hours:  0              |                  Billable?:  1
                                     |                  Internal?:  0
-------------------------------------+-------------------------------------
 Both the NSAS and the main resolver cache use the NSAS !HashTable and
 !LruList classes.  In both cases, the hash table is used to store/locate
 objects and the LRU list used to track and remove expired objects.

 It would make sense to:
  * Create a single class that contains both the hash table and LRU list,
 and provide methods that do common processing, e.g. provide the hash table
 search function that automatically updates the position of the object in
 the LRU list if a match is found.  (It also means that possible
 optimisations - such as using multiple LRU lists in multi-threaded
 applications - could be implemented without changing client code.)
  * Extract the code away from the NSAS into a separate library.

-- 
Ticket URL: <http://bind10.isc.org/ticket/535>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list