diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-14 05:24:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-14 05:24:17 +0000 |
commit | 6d01333390a0047a4e8ec0d69f4d1c8f43c3fc55 (patch) | |
tree | aa539a8dc67b986680175065607f9f51c471b831 /gold/symtab.h | |
parent | 460c00b558bc0cf4501c514b0ff13c7d48750165 (diff) | |
download | gdb-6d01333390a0047a4e8ec0d69f4d1c8f43c3fc55.zip gdb-6d01333390a0047a4e8ec0d69f4d1c8f43c3fc55.tar.gz gdb-6d01333390a0047a4e8ec0d69f4d1c8f43c3fc55.tar.bz2 |
From Craig Silverstein: size hash tables to avoid resizing.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r-- | gold/symtab.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index a4f1106..cb3be9b 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -955,7 +955,10 @@ class Warnings class Symbol_table { public: - Symbol_table(); + // COUNT is an estimate of how many symbosl will be inserted in the + // symbol table. It's ok to put 0 if you don't know; a correct + // guess will just save some CPU by reducing hashtable resizes. + Symbol_table(unsigned int count); ~Symbol_table(); |