Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [RFC] Dynamic window size on repack?

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:43:20


On Sun, 8 Jul 2007, Linus Torvalds wrote:
In other words, just look at how the variables "struct unpacked *array" 
(the whole window array) and the "struct unpacked *n" (the "next entry" in 
the array using a simple circular queue using "idx") are accessed.
Side note: a limit based on object sizes is likely a much better way to 
handle the window than just a "number of objects" thing ever was. Doing 
the size in number of objects was easier, and is fine for source code that 
tends to have a reasonably normal distribution of sized, but yeah, if you 
have a few really big objects with lots of history, then it's likely the 
wrong thing to do just because it can get really expensive.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help