This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: Speed/profile of gcc3.4


On Tue, Jan 20, 2004 at 01:42:35PM +0100, Richard Guenther wrote:
> The htab_find_slot_with_hash stuff should maybe splitted up because
> it seems heavily overloaded. Also, do we use power-of-two hashtab sizes
> only? In this case we could save the costly division/modulo calculations.

No, there are not enough primes which are power-of-two... ;)
All hash tables using libiberty/hashtable.c are using prime hashtab sizes,
ht_* in gcc/hashtable.c use power-of-two sizes.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]