Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

Re: [RFD PATCH 0/3] Use "object index" rather than pointers in the object hashing

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:04

Possibly related (same subject, not in this thread)

Linus Torvalds [off-list ref] writes:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help