summaryrefslogtreecommitdiff
path: root/src/reader_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-08-02 14:00:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-08-02 14:00:18 +0900
commit0ea66329b84cc6e4f8ff61ee99c00bb238070247 (patch)
tree72c3bc62ec491246390b56b2aac5b33645839503 /src/reader_test.go
parent634670e3ea51a2fa1498a3de0c074b819828e2d8 (diff)
downloadfzf-0ea66329b84cc6e4f8ff61ee99c00bb238070247.tar.gz
Performance tuning - eager rune array conversion
> wc -l /tmp/list2 2594098 /tmp/list2 > time cat /tmp/list2 | fzf-0.10.1-darwin_amd64 -fqwerty > /dev/null real 0m5.418s user 0m10.990s sys 0m1.302s > time cat /tmp/list2 | fzf-head -fqwerty > /dev/null real 0m4.862s user 0m6.619s sys 0m0.982s
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 00b9e337..bb68e510 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 string) bool { strs = append(strs, s); return true },
+ pusher: func(s []rune) bool { strs = append(strs, string(s)); return true },
eventBox: eb}
// Check EventBox