Hi, Dave
Thank you for your recommendation.
I used to use mib2c.iterate.conf, but I found the efficiency of this framework 
is too slow. For example i implement a table with about 4000 instances, it took 
me several minutes to walk this table.
So, how about the efficiency of mib2c.table_data.conf?

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Dave 
Shield
发送时间: 2009年4月2日 15:46
收件人: Kang Chen
抄送: [email protected]
主题: Re: code size generating by mib2c.mfd.conf

2009/4/2 Kang Chen <[email protected]>:
> I use mib2c.mfd.conf to generate the code,
> but I find the code size is too large.
>
> What’s your opinion about this problem and do you have
> any ways to reduce the code size?

The aim of the MfD framework is to handle as much as
possible of the table processing automatically.   And
the bits that do require developer input are deliberately
broken down into lots of little functions, which are (hopefully)
easier to understand.

Personally, I strongly dislike this code framework, and
try to avoid having anything to do with it.  I'll certainly
leave any support questions to those who understand it
better, and appreciate its benefits.

But I would fully accept that this is an irrational prejudice
on my part - and it's unfair to discard this particular
framework purely on my sayso.

But if you're not happy with the style (and amount) of code
that it generates, then it would make sense to look at one
of the other table helpers that we provide.
   I personally tend to use the 'mib2c.table_data.conf' template
(which uses the tdata helper).


Give that a whirl, and see if it's any better for your purposes.

Dave

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to