Re: [lisp-snmp] Misc fiddles for new OID types
Brought to you by:
binghe
From: John F. <jf...@ms...> - 2009-05-11 02:42:44
|
Dear Chun Tian, "Chun Tian (binghe)" <bin...@gm...> writes: [...] > Using a "weak hash table" as a cache for holding SIMPLE-OID instances > which already created in current lisp image, so that few SIMPLE-OID > created when repeat do SNMP-WALK on same MIB node. The key of this > hash table would be a "oid number list" as a list, and the value would > be the correspond SIMPLE-OID instance. > > Since "weak hash table" is not in CL standard, I'll support only a few > implementations included at least LispWorks, AllegroCL and SBCL, and > make a new "ASN.1 feature" (OID-CACHE) for this work. Do you think > this features would be useful for you? I think this might be a bad idea and probably will decrease performance on our workload, as we have many OIDs that are never seen again, so putting them into a weak hash-table just causes more problems for the garbage collector (they are difficult to implement efficiently). As I said before, the most sensible thing is probably just to use simple vectors as OIDs. [...] |