Re: GETBULK message change repetition
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 16 February 2011 13:11, <[email protected]> wrote: > I get my data from an internal running deamon which provides the specific data > structures. The data call occurs within the function 'module_get_next_data_point' below. Why? The purpose of the 'get_next_data_point' routine is simply to detect which is the appropriate row of the table for this particular request. It will typically work through *all* the rows of the table for each request, but is really only interested in the index values. There's no need to retrieve the actual data until the agent has determined which row is required. So I'd suggest you call get_modul_param_data() from the handler routine, rather than here. The iterator helper isn't the most efficient anyway. But if you're also retrieving a whole lot of unnecessary information every time through, then the performance is going to nosedive! Dave ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ 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