On 17/09/2007, <[EMAIL PROTECTED]> wrote:
> > I found that getting tables managed by my subagent is really slow,
> > asking a particular column of a row involves iterating over all the
> > rows.
> > Is it possible to speed up this process?
>
> I'm using table iterator and my subagent is written in C++.

The iterator helper is designed for tables which are held in
"non-sorted" order, so it will iterate through *all* the rows for
each individual request.   That's why it's called "table_iterator".

As you have recognised, this is not particularly efficient.
You might find one of the other table helpers a more appropriate
choice.  I'd suggest you look at 'table_tdata' - either allowing the
helper to hold the table data itself, or else caching a local copy
on a regular basis.
   In either case, you should find this a more efficient implementation.

Or you could look at the MfD framework.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to