Some speed improvements

This commit is contained in:
Nathan Braswell
2016-04-22 19:11:11 -04:00
parent bfc3b72b00
commit 5b2d394436
3 changed files with 11 additions and 23 deletions

View File

@@ -188,7 +188,6 @@ obj regex (Object, Serializable) {
return longest
if (next.any_true(fun(state: *regexState):bool { return state->is_end(); }))
longest = i
//next = next.flatten_map<*regexState>(fun(state: *regexState): vector::vector<*regexState> { return state->match_char(to_match[i]); })
next = next.flatten_map(fun(state: *regexState): set::set<*regexState> { return state->match_char(to_match[position+i]); })
}
if (next.any_true(fun(state: *regexState):bool { return state->is_end(); }))