Re: experience on creating instances in scotty-2.0.2 agent (repost)

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 9 May 1996 18:41:15 +0200

Hi!

Robert> When a lot of instances are created at once, for example while
Robert> updating a conceptual table holding a few thousands of
Robert> variables in its rows and columns, it is important that the
Robert> creation of instances is as fast as possible.

Juergen> Thank you very much for your analysis. However, I do not
Juergen> agree with your conclusion that we should document this
Juergen> behavior in the documentation. Instead, we should fix the
Juergen> implementation. I got a ratio speed1/speed3 of 76 which
Juergen> should be considered a bug.

I find a funny thing. Try running the following:

mib load rfc1213.mib
time "mib oid enterprises" 1000
time "mib oid enterprises.1" 1000

On my system, the second one is about 6 times slower. I have added
some additional code to reduce the factor to about 1. I think this
should make most of the special hacks to speed up instance creation
obsolete.

As a general rule, I would recommend to turn object names into object
identifier in dotted notation at the beginning of a script or
procedure. An object identifier in dotted notation is usually faster
it has the nice property to be unique. Names are not always unique and
you can run into strange problems just by loading another MIB module
later.

Juergen