summaryrefslogtreecommitdiff
path: root/src/reader_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-08-02 14:25:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-08-02 14:25:57 +0900
commite13bafc1abaea9a9f3142eb58be1e977ca97e114 (patch)
tree98c07483e3fb5057feb8c8854d51034c0856b08c /src/reader_test.go
parent0ea66329b84cc6e4f8ff61ee99c00bb238070247 (diff)
downloadfzf-e13bafc1abaea9a9f3142eb58be1e977ca97e114.tar.gz
Performance fix - unnecessary rune convertion on --ansi
> time cat /tmp/list | fzf-0.10.1-darwin_amd64 --ansi -fqwerty > /dev/null real 0m4.364s user 0m8.231s sys 0m0.820s > time cat /tmp/list | fzf --ansi -fqwerty > /dev/null real 0m4.624s user 0m5.755s sys 0m0.732s
Diffstat (limited to 'src/reader_test.go')
-rw-r--r--src/reader_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader_test.go b/src/reader_test.go
index bb68e510..d5c218cb 100644
--- a/src/reader_test.go
+++ b/src/reader_test.go
@@ -10,7 +10,7 @@ func TestReadFromCommand(t *testing.T) {
strs := []string{}
eb := util.NewEventBox()
reader := Reader{
- pusher: func(s []rune) bool { strs = append(strs, string(s)); return true },
+ pusher: func(s []byte) bool { strs = append(strs, string(s)); return true },
eventBox: eb}
// Check EventBox