Commit 4db0930
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>1 parent 09c7029 commit 4db0930
1 file changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6531 | 6531 | | |
6532 | 6532 | | |
6533 | 6533 | | |
| 6534 | + | |
6534 | 6535 | | |
6535 | 6536 | | |
6536 | 6537 | | |
| |||
6540 | 6541 | | |
6541 | 6542 | | |
6542 | 6543 | | |
| 6544 | + | |
6543 | 6545 | | |
6544 | 6546 | | |
| 6547 | + | |
6545 | 6548 | | |
6546 | 6549 | | |
6547 | 6550 | | |
| |||
9816 | 9819 | | |
9817 | 9820 | | |
9818 | 9821 | | |
9819 | | - | |
| 9822 | + | |
| 9823 | + | |
| 9824 | + | |
| 9825 | + | |
9820 | 9826 | | |
9821 | 9827 | | |
9822 | 9828 | | |
9823 | 9829 | | |
9824 | 9830 | | |
| 9831 | + | |
9825 | 9832 | | |
9826 | 9833 | | |
9827 | 9834 | | |
9828 | 9835 | | |
9829 | 9836 | | |
9830 | 9837 | | |
| 9838 | + | |
| 9839 | + | |
| 9840 | + | |
| 9841 | + | |
| 9842 | + | |
| 9843 | + | |
| 9844 | + | |
| 9845 | + | |
| 9846 | + | |
| 9847 | + | |
| 9848 | + | |
| 9849 | + | |
| 9850 | + | |
| 9851 | + | |
| 9852 | + | |
| 9853 | + | |
| 9854 | + | |
| 9855 | + | |
| 9856 | + | |
| 9857 | + | |
| 9858 | + | |
| 9859 | + | |
| 9860 | + | |
| 9861 | + | |
| 9862 | + | |
| 9863 | + | |
9831 | 9864 | | |
9832 | 9865 | | |
9833 | 9866 | | |
| |||
0 commit comments