]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
Use a radix tree for IDRMap.
authorScott Wood <scott@buserror.net>
Sat, 3 Mar 2007 16:54:52 +0000 (10:54 -0600)
committerScott Wood <scott@buserror.net>
Sat, 3 Mar 2007 16:54:52 +0000 (10:54 -0600)
kernel/include/kern/orb.h

index dc832c385c1566d0e8122c389408eea6e1d1522b..b00d758fbcf1c671e4a297d933a0136d5e7e28f8 100644 (file)
@@ -2,6 +2,7 @@
 #define _KERN_ORB_H
 
 #include <kern/types.h>
+#include <kern/radix.h>
 #include <orb.h>
 
 #include <util/list.h>
@@ -54,11 +55,11 @@ namespace ORB {
        struct ObjectHdr;
        struct Object;
        
-       typedef Util::RBTree<ObjectHdr, Object *, Object *> IDRMap;
+       typedef u32 ID;
+       typedef Util::RadixTree<ObjectHdr, ID> IDRMap;
 
        struct ObjectHdr {
-               IDRMap::Node rbtree_node;
-               u32 id;
+               ID id;
 
                union {
                        struct {