From e13bafc1abaea9a9f3142eb58be1e977ca97e114 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 2 Aug 2015 14:25:57 +0900 Subject: 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 --- src/reader_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reader_test.go') 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 -- cgit v1.2.3