git-gui: Optimize encoding name resolution using a lookup table.
commita1c3feb7fac7fe90ff8a05779d7db9cf77e79ae1
authorAlexander Gavrilov <angavrilov@gmail.com>
Wed, 17 Sep 2008 21:07:35 +0000 (18 01:07 +0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 24 Sep 2008 19:48:32 +0000 (24 12:48 -0700)
tree3f2d1b5e9f00eea367b3585096de4cc3d77051a9
parent3fe0162362f80262ed1965f19c1f57f298931c94
git-gui: Optimize encoding name resolution using a lookup table.

Encoding menu construction does almost a hundred of encoding
resolutions, which with the old implementation led to a
small but noticeable delay.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Tested-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/encoding.tcl