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