gitk: Implement batch lookup and caching of encoding attrs
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 13 Oct 2008 08:12:33 +0000 (12:12 +0400)
committerPaul Mackerras <paulus@samba.org>
Tue, 14 Oct 2008 11:25:54 +0000 (22:25 +1100)
commit4db09304f97b12d7db5d199eebb1f24c74e12d17
treebc4a946acb3943e861bbc487721e93d30024bc63
parent09c7029dfa58748268a6306bfe764456a65a22bf
gitk: Implement batch lookup and caching of encoding attrs

When the diff contains thousands of files, calling git-check-attr once
per file is very slow.  With this patch gitk does attribute lookup in
batches of 30 files while reading the diff file list, which leads to a
very noticeable speedup.

It may be possible to reimplement this even more efficiently, if
git-check-attr is modified to support a --stdin-paths option.
Additionally, it should quote the ':' character in file paths, or
provide a more robust way of column separation.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Tested-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk