table helpers issue

Joan Landry <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <B6B5ACC096D8924AA1D765231278AAF7185D62AA@mbx024-e1-nj-2.exch024.domain.local>
I am using:
   abc_data = netsnmp_tdata_create_table("abcTable", 0);
   table_info = SNMP_MALLOC_TYPEDEF(netsnmp_table_registration_info);
   netsnmp_table_helper_add_indexes(table_info, ASN_INTEGER, 
         ASN_UNSIGNED,  0);
   table_info->min_column = COLUMN_a;
   table_info->max_column = COLUMN_b;
   netsnmp_tdata_register(reg, abc_data, table_info);

    row = netsnmp_tdata_create_row();
    row->data = entry;
    netsnmp_tdata_row_add_index(row, ASN_INTEGER, &(entry->No),
                        sizeof(entry->No));
    netsnmp_tdata_row_add_index(row, ASN_UNSIGNED, &(entry->Interval),
                                sizeof(entry->Interval));
    netsnmp_tdata_add_row(table_data, row);

It takes 1 hour to build 1,024 rows. 

Does anyone know how to speed this up? Apparently net-snmp must be doing a sort each time a row is added in order to make the get-next process work correctly.

Any ideas would be greatly appreciated.

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
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.