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

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -