This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fix some performance bugs with .gdb_index
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 20 Feb 2012 21:53:36 +0100
- Subject: Re: FYI: fix some performance bugs with .gdb_index
- References: <87pqd9uthn.fsf@fleche.redhat.com>
On Mon, 20 Feb 2012 21:42:28 +0100, Tom Tromey wrote:
> + visited_found = htab_create_alloc (10,
> + htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
[...]
> + visited_not_found = htab_create_alloc (10,
> + htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
[...]
> + htab_t visited = htab_create_alloc (10, htab_hash_pointer, htab_eq_pointer,
> + NULL, xcalloc, xfree);
Just wouldn't be obstack + hashtab_obstack_allocate more appropriate here?
Thanks,
Jan