summaryrefslogtreecommitdiff
path: root/src/cache.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-07-16 23:31:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-07-16 23:34:32 +0900
commit9e85cba0d06025983a1a747bfc06c9955388d9c0 (patch)
tree8fe8dc1fd62ad3ecfbfd02e440fac6cfedcd313c /src/cache.go
parent4b59ced08f1d417530a25af8fe13aa5d40579220 (diff)
downloadfzf-9e85cba0d06025983a1a747bfc06c9955388d9c0.tar.gz
Reduce memory footprint of Item struct
Diffstat (limited to 'src/cache.go')
-rw-r--r--src/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.go b/src/cache.go
index 272a78be..0540bdcf 100644
--- a/src/cache.go
+++ b/src/cache.go
@@ -33,8 +33,8 @@ func (cc *ChunkCache) Add(chunk *Chunk, key string, list []*Result) {
(*qc)[key] = list
}
-// Find is called to lookup ChunkCache
-func (cc *ChunkCache) Find(chunk *Chunk, key string) []*Result {
+// Lookup is called to lookup ChunkCache
+func (cc *ChunkCache) Lookup(chunk *Chunk, key string) []*Result {
if len(key) == 0 || !chunk.IsFull() {
return nil
}