On 1 November 2012 09:13, Jatin Bodarya <jatin.boda...@elitecore.com> wrote: > Hi Dave,
I'm actually taking something of a sabbatical from Net-SNMP support at the moment. It would be sensible to address your queries to the general community, rather than to me personally, as I'm relatively unlikely to respond > I have implemented C code using mib2c.create-dataset.conf ( with cache > enabled) > > Here I suppose to read very large amount of data from file. And so I m > Facing problem while reloading the cache... The obvious thing would be to investigate one of the other table helpers. The 'dataset' helper uses a very generic approach - the data for the table is stored as a list of rows, each of which is stored as a list of individual entries. As such, it is very flexible, with minimal MIB-specific code required, but not particularly fast. Personally, I'd be inclined to look at using the 'tdata' helper (mib2c.table_data.conf), which also stores the table as a list of rows. But each row is stored as a single (MIB-specific) data structure. So accessing an individual value uses hard-wired code for that particular column object, and avoids searching the per-row list. As such, it should be noticeably faster than the create-dataset approach (though I haven't done any timing tests to confirm this). Alternatively you could look at the MFD framework, which again has a greater amount of MIB-specific code - mostly automatically generated by the mib2c command. Personally, I don't particularly like the style of code this uses, but that's as much taste as anything else - it should also be noticeably faster than the create-dataset style. Have a look at one or both of those, and see if they're any better suited for your needs. Dave ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders