On Mon, Sep 22, 2008 at 1:18 PM, Johannes Sixt [off-list ref] wrote:
Alexander Gavrilov schrieb:
quoted
You can also try applying this patch (originally made for git-gui). It may save
additional 0.3 sec, especially for obscure legacy encodings.
Is this about startup time? Personally, I don't care about 0.3 sec startup
time. I close my primary gitk and git-gui Windows only once a week. ;-)
As encoding lookups are currently cached, all this discussion is about
the first viewing.
This patch addresses the time necessary to convert an arbitrary
encoding name to a name that is known to Tcl, or determine that it is
not supported. Without the patch it is done using a linear search
through a large table of aliases. In git-gui it caused a noticeable
delay before the Encoding submenu, which lists all available
encodings, was displayed.
Alexander