Re: netsnmp_large_fd_set_resize

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, Nov 3, 2010 at 9:31 PM, Joan Landry <
[email protected]> wrote:

> In profiling the net-snmp code it was discovered that the function
> netsnmp_large_fd_set_resize is consuming a lot of cpu time.
>
> Does anyone know the ramifications of not doing the following set of
> code:
>        /*
>         * Unix: clear the file descriptors defined in the resized
> *fdset
>         * but that were not defined in the original *fdset.
>         */
>        for (i = fdset->lfs_setsize + 1; i < setsize; i++)
>            FD_CLR(i, fdset->lfs_setptr);
>

Hello Joan,

If that code wasn't necessary, it wouldn't have been there. However,
optimizing it might be possible.

Bart.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.