Adding the cache module.
authorChristopher R. Hertel <crh@samba.org>
Fri, 19 Dec 1997 09:32:58 +0000 (09:32 +0000)
committerChristopher R. Hertel <crh@samba.org>
Fri, 19 Dec 1997 09:32:58 +0000 (09:32 +0000)
commit45962779a658b0b78895ae08ad394e870ce6ed10
treee7d83252c21beb975aca7b2e9e1266b4391996a0
parentbcfcc39a2752de0fb35b419d005bb1a86fd15fea
Adding the cache module.
I'll be using the cache module to replace the name cache in mangle.c.  The
new one should be much faster and should require less memory.
Another feature is that the cache size can be limited by the amount of
memory used in addition to the number of entries allowed.  With the
current cache, the default is to allocate 12800 bytes representing 50
entries (256 bytes each).  With the same amount of memory, I should be able
to load over around two hundred entries.
Changes to the AVL trees were minor (missing comments).
Chris -)-----
source/ubiqx/ubi_AVLtree.c
source/ubiqx/ubi_AVLtree.h
source/ubiqx/ubi_Cache.c [new file with mode: 0644]
source/ubiqx/ubi_Cache.h [new file with mode: 0644]