Re: Bizarre missing changes (git bug?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Sunday, July 27, 2008 - 10:00 pm

On Mon, 28 Jul 2008, Roman Zippel wrote:

OF COURSE it's the same numbr of commits. That's what gitk uses. That's 
what you *have* to use.

You don't actually understand how git works, do you?


So what? The point I tried to make is that _any_ algorithm that gets the 
above case right by actually simplifying the commits "post facto" probably 
gets any case right. You tried to find some more interestign case, but you 
missed the whole point - even the "simple" case is quite hard enough. 

IOW, don't look for anythign more difficult, because if you do, you don't 
understand the problem to begin with!

Do you not understand that the problem is that "post facto" isn't actually 
acceptable? Have you looked at all at the revision reading code? Hmm?

The regular merge simplification does the simplification _before_ it has 
gathered the whole history of commits. And that is really really 
important.

And I realize that you don't even seem to understand the difference. But 
to simplify it for you, let me give you a challenge. Try this:

	time sh -c "git log --parents --full-history lib/vsprintf.c | head"

and if it takes noticeably more than a tenth of a second on my machine, 
you lose.

Because that's roughly what it takes right now, and it's what means that 
effectively the normal log is instantaneous. It's why you can start 
looking at the log without waiting for three seconds, even though the 
_full_ log may take three seconds to compute (ok, on my machine it takes 
2.3s, but whatever).

And it's why gitk can start printing out the history _before_ three 
seconds has passed. And that's really really important.

Try it. Really. Just do "gitk lib/vsprintf.c" and look at how it does 
things incrementally. It doesn't wait for a couple of seconds and then 
show things.

Absolutely EVERYTHING in git would be totally trivial if you did it all 
based on generating first the whole history, and then simplifying it from 
there. But git would be unusably slow in real life, and it would scale 
_horribly_ badly with history size.

So _all_ the normal code actually generates the history INCREMENTALLY, and 
it absolutely _has_ to work that way.

			Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Bizarre missing changes (git bug?), Tim Harper, (Mon Jul 21, 1:26 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Mon Jul 21, 1:37 pm)
Re: Bizarre missing changes (git bug?), Alex Riesen, (Mon Jul 21, 1:42 pm)
Re: Bizarre missing changes (git bug?), Tim Harper, (Mon Jul 21, 3:53 pm)
Re: Bizarre missing changes (git bug?), Tim Harper, (Mon Jul 21, 3:55 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Fri Jul 25, 8:12 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Sat Jul 26, 12:58 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Sun Jul 27, 10:50 am)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Sun Jul 27, 11:47 am)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Sun Jul 27, 4:14 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Sun Jul 27, 4:18 pm)
Re: Bizarre missing changes (git bug?), Martin Langhoff, (Sun Jul 27, 4:25 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Sun Jul 27, 5:00 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Sun Jul 27, 6:29 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Sun Jul 27, 10:00 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Sun Jul 27, 10:30 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Mon Jul 28, 7:59 pm)
Re: Bizarre missing changes (git bug?), Martin Langhoff, (Mon Jul 28, 8:15 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Mon Jul 28, 8:29 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Mon Jul 28, 8:33 pm)
Re: Bizarre missing changes (git bug?), Jeff King, (Mon Jul 28, 10:31 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 4:39 am)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 5:32 am)
Re: Bizarre missing changes (git bug?), Olivier Galibert, (Tue Jul 29, 5:48 am)
Re: Bizarre missing changes (git bug?), Jeff King, (Tue Jul 29, 5:52 am)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 8:50 am)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 10:25 am)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 5:16 pm)
Re: Bizarre missing changes (git bug?), Martin Langhoff, (Tue Jul 29, 5:25 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 5:32 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 5:48 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 6:14 pm)
Re: Bizarre missing changes (git bug?), Kevin Ballard, (Tue Jul 29, 6:32 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 6:49 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 6:50 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 7:05 pm)
Re: Bizarre missing changes (git bug?), Roman Zippel, (Tue Jul 29, 7:48 pm)
Re: Bizarre missing changes (git bug?), Kevin Ballard, (Tue Jul 29, 8:20 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 8:21 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 8:35 pm)
Re: Bizarre missing changes (git bug?), Jeff King, (Tue Jul 29, 9:23 pm)
Re: Bizarre missing changes (git bug?), Jeff King, (Tue Jul 29, 9:26 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Tue Jul 29, 9:52 pm)
Re: Bizarre missing changes (git bug?), Jakub Narebski, (Wed Jul 30, 1:36 am)
Re: Bizarre missing changes (git bug?), Junio C Hamano, (Wed Jul 30, 4:56 pm)
Re: Bizarre missing changes (git bug?), Junio C Hamano, (Wed Jul 30, 5:15 pm)
Re: Bizarre missing changes (git bug?), Linus Torvalds, (Wed Jul 30, 5:30 pm)