summaryrefslogtreecommitdiff
path: root/lib/error.tcl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-06-02 16:01:43 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-06-06 01:26:50 -0400
commit2f85b7e4b421ab032cc2342808640479a988277f (patch)
tree6ed62f08b844d16627a553a4db705c0a632d7e93 /lib/error.tcl
parentgit-gui: Cleanup redundant column management in blame viewer (diff)
downloadtgif-2f85b7e4b421ab032cc2342808640479a988277f.tar.xz
git-gui: Switch internal blame structure to Tcl lists
The Tcl list datatype is significantly faster to work with than the array type, especially if our indexes are a consecutive set of numbers, like say line numbers in a file. This rather large change reorganizes the internal data structure of the blame viewer to use a proper Tcl list for the annotation information about a line. Each line is given its own list within the larger line_data list, where the indexes correspond to various facts about that particular line. The interface does seem to be more responsive this way, with less time required by Tcl to process blame, and to switch to another version of the same file. It could just be a placebo effect, but either way most Tcl experts perfer lists for this type of work over arrays. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/error.tcl')
0 files changed, 0 insertions, 0 deletions