diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-19 19:59:38 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-19 19:59:38 +0900 |
commit | d94dfe087694d68073f01a51c7357fc4741641d8 (patch) | |
tree | 6b607257229b76db9fc275c6fd3533e8c9190b34 /src/matcher.go | |
parent | 6130026786fce0a8ac9e053694761405f4f599c3 (diff) |
Fix #151 - reduce initial memory footprint
Diffstat (limited to 'src/matcher.go')
-rw-r--r-- | src/matcher.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/matcher.go b/src/matcher.go index 0879a088..06352f59 100644 --- a/src/matcher.go +++ b/src/matcher.go @@ -134,6 +134,10 @@ func (m *Matcher) scan(request MatchRequest) (*Merger, bool) { } pattern := request.pattern empty := pattern.IsEmpty() + if empty { + return PassMerger(&request.chunks, m.tac), false + } + cancelled := util.NewAtomicBool(false) slices := m.sliceChunks(request.chunks) |