This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 08/26/2010 03:17 PM, sami wagiaalla wrote:
Sami> + /* Has a template symbol for this symbol been added already ? */ Sami> + for (iterator = *(listhead); Sami> + iterator != NULL; Sami> + iterator = iterator->next)
I think this means that adding template symbols is O(N^2). A temporary hash table for recording this info would be better.
Hmm.. I can't think of an elegant way to do this.
I think we can do this, [...]
struct template_hash_entry { /* Key. */ char *name; struct pending *list;
/* Value. */ struct symbol *template_sym; };
Thanks, Sami
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |