Re: [RFD PATCH 0/3] Use "object index" rather than pointers in the object hashing
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 17, 2007, 04:21 UTC
- Message-ID
- <7vfy6zskb4.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0704162041290.5473@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 10 quoted lines
> This is a series of three patches that changes the low-level object > hashing to use a "object index" rather than the pointer to a "struct > object" in the hash-tables. It's something I've been thinking about for a > long time, so I just decided to do it. > > The reason to do it is that on 64-bit architectures the object hash table > is actually a fairly sizeable entity, and not for a very good reason. It > has a ton of pointers to the objects we have allocated, so each hash-table > entry is 64-bits, even though obviously we aren't likely to ever have that > many objects.
I was thinking about revamping that "keeping track of all objects" stuff for some time, too, but in a different direction. Glad I have not touched that area ;-).
I think this makes sense, although the numbers are somewhat dissapointing.