Much faster to search and add to the string pool as a binary tree

This commit is contained in:
Eric Fischer
2014-09-22 22:31:55 -07:00
parent d7cdbec980
commit 581105dc9a
3 changed files with 32 additions and 7 deletions
+6
View File
@@ -19,11 +19,17 @@ struct pool_val {
int type;
int n;
struct pool_val *left;
struct pool_val *right;
struct pool_val *next;
};
struct pool {
struct pool_val *vals;
struct pool_val *head;
struct pool_val *tail;
int n;
};