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

Re: [PATCH] interpret_nth_last_branch(): avoid traversing the reflogs twice

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:45:59

Hi,

On Sat, 17 Jan 2009, Junio C Hamano wrote:
Johannes Schindelin [off-list ref] writes:
quoted
Note: these are the memory requirements after some really unrealistically 
high activity, and the memory is free()d during parameter parsing.

A much more realistical expectation would be to switch branches maybe 20 
times a day, which would amount to something like 36 kilobyte.  And again, 
they are free()d before the action really starts.
My HEAD reflog is 7MB long with 39000 entries, and among them, 13100
entries have "checkout: moving ".

I know I will never want to switch back to the 10000th from the last 
branch.  I am quite sure that I would forget which branch I was on after 
switching branches three or four times (hence my original hardcoded 
limitation of 10 which "should be plenty").  When I know I only have to 
keep track of 10 entries, having to keep track of 13100 entries, even if 
it is 36kB (it would actually be 260kB in my case) feels there is 
something wrong in the design.
Hrm.  So let's leave it as a two-pass thing?

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