Remove caching, as doesn't seem to help for now.

This commit is contained in:
Matthew Honnibal 2018-02-13 17:15:20 +01:00
parent f43d53f2c5
commit 262cbe356e
1 changed files with 9 additions and 9 deletions

View File

@ -203,16 +203,16 @@ cdef ActionC get_action(PatternStateC state, const TokenC* token, const attr_t*
Problem: If a quantifier is matching, we're adding a lot of open partials
'''
cached_match = <uint64_t>cache.get(state.pattern.key)
#cached_match = <uint64_t>cache.get(state.pattern.key)
cdef char is_match
if cached_match == 0:
is_match = get_is_match(state, token, extra_attrs)
cached_match = is_match + 1
cache.set(state.pattern.key, <void*>cached_match)
elif cached_match == 1:
is_match = 0
else:
is_match = 1
#if cached_match == 0:
is_match = get_is_match(state, token, extra_attrs)
# cached_match = is_match + 1
# cache.set(state.pattern.key, <void*>cached_match)
#elif cached_match == 1:
# is_match = 0
#else:
# is_match = 1
quantifier = get_quantifier(state)
is_final = get_is_final(state)
if quantifier == ZERO: