Reducing RE2 memory consumption -
i using google's re2 regex library doing url matching. want match url if matches given pattern. using anchor_both option. however, seems re2 apparently uses 2 dfas.
"each re2 has 2 progs (one forward, 1 reverse), , each prog can have 2 dfas (one first match, 1 longest match). makes 4 dfas:"
since use longest match , no reverse match, want save memory having 1 dfa. not find option disable other dfas in re2. can ?
Comments
Post a Comment