1 2 3 #include "cs_config.h" 4 #include <unistd.h> 5 #include "util/neo_misc.h" 6 #include "util/neo_hdf.h" 7 #include "util/neo_rand.h" 8 main(int argc,char * argv[])9int main(int argc, char *argv[]) 10 { 11 HDF *hdf = NULL; 12 int i, j; 13 14 hdf_init(&hdf); 15 16 ne_warn("creating 100000x10 nodes"); 17 for (i = 0; i < 100000; i++) { 18 char buffer[64]; 19 for (j = 0; j < 10; j++) { 20 snprintf(buffer, sizeof(buffer), "node.%d.test.%d", i, j); 21 hdf_set_value(hdf, buffer, "test"); 22 } 23 } 24 25 ne_warn("calling dealloc"); 26 hdf_destroy(&hdf); // <-- this takes forever to return with a hugely 27 return 0; 28 } 29