Dave,

This one really helped +        iinfo->flags |=
NETSNMP_ITERATOR_FLAG_SORTED;

winpath: Ifc Get 6
winpath: Ifc Get 1st
winpath: Ifc Get next
winpath: Ifc Get 6
winpath: Ifc Get 1st
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get 6
winpath: Ifc Get 1st
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get 6
winpath: Ifc Get 1st
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get 6
winpath: Ifc Get 1st
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next
winpath: Ifc Get next

Thanks Asaf

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
Sent: Wednesday, September 22, 2004 11:29 AM
To: Asaf Matan
Cc: [EMAIL PROTECTED]
Subject: Re: Table Get Time Complexity O(k(n^2)) ?? 


> When I try to walk or do table get from the client I get:
> This is like O(k*(n^2) complexity

> How can I make the scan more efficient??


  a)  Use 'snmpbulkwalk' (with v2c/3)
        (which will try to get as much as possible in one go)

  b)  Use 'snmptable'
        (which will walk the columns in parallel)

  c)  Implement your MIB using something other than the
        'iterator' helper (which is not designed for efficiency)

  d)  If the table is stored in the correct order internally,
        then set the flag NETSNMP_ITERATOR_FLAG_SORTED
        in the initialisation routine:

        netsnmp_iterator_info  *iinfo =
             SNMP_MALLOC_TYPEDEF(netsnmp_iterator_info);
        iinfo->get_first_data_point = XXX_get_first_data_point;
        iinfo->get_next_data_point  = XXX_get_next_data_point;
+       iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED;



Dave



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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