RE: net-snmp takes a long time to create table

2011-12-02 Thread James Puttick
Bingo! That reduced the table creation time from 30 seconds to 1 second (or maybe less). Thank you. -- James -Original Message- JP> Net-SNMP v5.3.0.1 does have the CONTAINER_SET_OPTIONS macro defined. JP> However, trying to set the option to UNSORTED had no effect. JP> (CONTAINER_SET_OPT

RE: net-snmp takes a long time to create table

2011-12-01 Thread James Puttick
Hi, Robert Thanks for the suggestion. Net-SNMP v5.3.0.1 does have the CONTAINER_SET_OPTIONS macro defined. However, trying to set the option to UNSORTED had no effect. (CONTAINER_SET_OPTIONS() sets the return code to -1, so the 'options' field of the container is apparently a null pointer.) grep

net-snmp takes a long time to create table

2011-11-25 Thread James Puttick
I have a working net-snmp application, with my own MIB. My MIB has a number of statically-sized tables. I have increased the size of one of those tables to 10,000 rows. (It was less than 1000 rows previously). At start-up, my code executes entry = SNMP_MALLOC_TYPEDEF (struct my_table); r