]> source.dussan.org Git - jgit.git/commit
PackWriter: Skip progress messages on fast operations 33/3933/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 27 Jul 2011 19:10:19 +0000 (12:10 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 28 Jul 2011 17:22:50 +0000 (10:22 -0700)
commit68cc21b60d83b5c4fb1de6c34a79836c51dd9b3b
tree5648d31600fb37c02680fc3482de7178e16dbaa8
parentc81f6ab3abf9fecc298294b44385538ac9e80e92
PackWriter: Skip progress messages on fast operations

If the "Finding sources" phase will complete in <1 second with no
delta compression enabled, don't bother showing the progress meter for
this phase.  Small repositories on the local filesystem tend to rip
through this phase always subsecond and the ProgressMonitor display
can actually slow the operation down.

If delta compression is enabled, there are two phases that may run
very quickly. Set the timer to 500 milliseconds instead, reducing the
risk that the user has to wait longer than 1 second before any sort of
output from the packer occurs.

Change-Id: I58110f17e2a5ffa0134f9768b94804d16bbb8399
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java