Skip to content

Commit 9b9058d

Browse files
Remove Encode to speed up startup by ~15ms
1 parent d4eb9da commit 9b9058d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff-so-fancy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use strict;
1010

1111
use File::Spec; # For catdir
1212
use File::Basename; # For dirname
13-
use Encode; # For handling UTF8 stuff
1413
use Cwd qw(abs_path); # For realpath()
1514
use lib dirname(abs_path(File::Spec->catdir($0))) . "/lib"; # Add the local lib/ to @INC
1615
use DiffHighlight;
@@ -640,7 +639,8 @@ sub horizontal_rule {
640639
# BOX DRAWINGS LIGHT HORIZONTAL http://www.fileformat.info/info/unicode/char/2500/index.htm
641640
my $dash;
642641
if ($use_unicode_dash_for_ruler && should_print_unicode()) {
643-
$dash = Encode::encode('UTF-8', "\x{2500}");
642+
#$dash = Encode::encode('UTF-8', "\x{2500}");
643+
$dash = "\xE2\x94\x80";
644644
} else {
645645
$dash = "-";
646646
}

0 commit comments

Comments
 (0)