Code

t3302-notes-index-expensive: Speed up create_repo()
authorJohan Herland <johan@herland.net>
Fri, 9 Oct 2009 10:22:03 +0000 (12:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2009 02:00:24 +0000 (19:00 -0700)
commit3ed24b6aaf35d6ca1eef2643cd0b9128eb152cda
tree2a7410e4f2820f9e1a6f0d8129ebe9ddcccfabd6
parenta8dd2e7d2bd7472b4e02b07aeef795de9c74f3e7
t3302-notes-index-expensive: Speed up create_repo()

Creating repos with 10/100/1000/10000 commits and notes takes a lot of time.
However, using git-fast-import to do the job is a lot more efficient than
using plumbing commands to do the same.

This patch decreases the overall run-time of this test on my machine from
~3 to ~1 minutes.

Signed-off-by: Johan Herland <johan@herland.net>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3302-notes-index-expensive.sh