On Tue, 2005-04-05 at 22:00, Wes Hardaker wrote: > >> On Thu, 3 Feb 2005 10:01:54 -0800 Mike wrote: > MT> If table interator helper is used to access sorted tables,... > MT> ... Giving the get_first_data_point function access to the > MT> indices from the request ... can begin the search starting > MT> from the index values and not from the first entry as currently > MT> required.
> It is a good idea, and thus should be done as all good ideas should > be! I thought that it was already done actually, as grepping for > SORTED already produces a hit. ??? No - my original SORTED patch was concerned with when to *stop* looking for the appropriate row - not where to start the search. In some ways, this patch is moving some of the functionality of the iterator helper back into user code. In order to use this initial index to find the best starting point, the get_first hook would need to know about how SNMP indexing works, which was one of the reasons for the iterator in the first place! But given that many tables use trivial integer indexes anyway, and the transparent nature of this patch, I see no reason not to include it. It provides a significant benefit with no real cost. Dave ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders