Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
This is a massive difference for me. I ran it on git-gui.sh in
the git-gui repository - this is a 6000 line file that has a lot of
revisions, and has been renamed a few times. I applied the patch on
top of current 'master' (v1.5.1-rc1), so I was testing with Linus'
delta_base_cache.
# stock v1.5.1-rc1
$ for a in 1 2 3 4 5;do /usr/bin/time ../lt-blame blame --incremental HEAD git-gui.sh >/dev/null;done
6.27 real 5.31 user 0.55 sys
6.40 real 5.32 user 0.55 sys
6.33 real 5.33 user 0.53 sys
6.67 real 5.32 user 0.55 sys
6.18 real 5.31 user 0.53 sys
# with the above patch
$ for a in 1 2 3 4 5;do /usr/bin/time ../js-blame blame --incremental HEAD git-gui.sh >/dev/null;done
3.57 real 2.87 user 0.51 sys
3.58 real 2.87 user 0.51 sys
3.53 real 2.86 user 0.52 sys
3.61 real 2.86 user 0.51 sys
3.64 real 2.87 user 0.52 sys
For the record, both versions did produce identical output.
Given how small of a change it is, and how much of an improvement
it made, I say apply it.
--
Shawn.
-
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