On my project, one. But I've seen this problem repeatedly in other
projects that had multiple developers. For example, I used to use
version 1 of an assembler. It was itself written entirely in assembler.
It ran *incredibly* slowly on large asm files. But it was written in
assembler, which is very fast, so how could that be?
Turns out, the symbol table used internally was a linear one. A linear
symbol table is easy to implement, but doesn't scale well at all. A
linear symbol table was implemented because it was just harder to do
more advanced symbol table algorithms in assembler. In this case, a
higher level language re-implementation made the assembler much faster,
even though that implementation was SLOWER in every detail. It was
faster overall, because it was easier to develop faster algorithms.
My point was that when I reimplemented it in D, the cost of changing the
algorithms got much lower, so I was much more tempted to muck around
trying out different ones. The result was I found faster ones.
That is a nice advantage. I don't think many projects can rely on having
the best in the business working on them, though <g>.
Sure, but I suggest that few projects reach this maxima. Case in point:
ld, the gnu linker. It's terribly slow. To see how slow it is, compare
it to optlink (the 15 years old one that comes with D for Windows). So I
don't believe there is anything inherent about linking that should make
ld so slow. There's some huge leverage possible in speeding up ld
(spreading out that saved time among all the gnu developers).
So while git may have reached a maxima in performance, I don't think
this principle is applicable in general, even for very widely used open
source projects that would profit greatly from improved performance.
------
Walter Bright
http://www.digitalmars.com C, C++, D programming language compilers
http://www.astoriaseminar.com Extraordinary C++
-
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