Reduce memory footprint of Item struct

This commit is contained in:
Junegunn Choi committed 2017-07-16 23:34:32 +09:00
1 parent 4b59ced08f
commit 9e85cba0d0
12 files changed
+139 -122

No files matched your search

+2 -2
View File
@@ -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
}