aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-12 19:33:33 -0500
committerShawn O. Pearce <spearce@spearce.org>2006-11-13 00:10:40 -0500
commit7f09cfafa8acf507f3a1358e05002e566f41783f (patch)
tree22feae1e306ac7eee5bef205a5aa5f58964abe69 /git-gui
parentaaf1085a03a53eacff1b26459d0281a133f573d5 (diff)
downloadgit-7f09cfafa8acf507f3a1358e05002e566f41783f.tar.gz
git-7f09cfafa8acf507f3a1358e05002e566f41783f.tar.xz
git-gui: Use a smaller pipe buffer for update-index.
When we shove a large number of files at update-index and they have very short path names we are likely going to fit a large number of them into the pipe buffer very early; thereby seeing a huge progress update followed by lots of waiting between progress updates due to the latency of update-index. Using a smaller buffer should help smooth out the progress updates as we are better able to keep tabs on the update-index process' progress through our list of paths. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-gui b/git-gui
index b1a90e666..7e28328cf 100755
--- a/git-gui
+++ b/git-gui
@@ -1171,7 +1171,11 @@ proc update_index {pathList} {
$totalCnt \
0.0]
set fd [open "| git update-index --add --remove -z --stdin" w]
- fconfigure $fd -blocking 0 -translation binary
+ fconfigure $fd \
+ -blocking 0 \
+ -buffering full \
+ -buffersize 512 \
+ -translation binary
fileevent $fd writable [list \
write_update_index \
$fd \