RESOLVED FIXED 144649
[Content Extensions] Limit NFA size
https://bugs.webkit.org/show_bug.cgi?id=144649
Summary [Content Extensions] Limit NFA size
Alex Christensen
Reported 2015-05-05 17:30:30 PDT
Right now we’re making an NFA with 249069 nodes. The NFA uses 100MB of memory. The DFA uses 241MB of memory. This is bad. Limiting the NFA size to 50000 splits this into 7 NFAs. The largest NFA uses 27MB of memory. The largest DFA uses 44 MB of memory. We could tune the max size later, but we really need a max size.
Attachments
Patch (2.58 KB, patch)
2015-05-05 17:37 PDT, Alex Christensen
no flags
Patch (3.32 KB, patch)
2015-05-05 18:05 PDT, Alex Christensen
benjamin: review+
Alex Christensen
Comment 1 2015-05-05 17:37:27 PDT
Alex Christensen
Comment 2 2015-05-05 18:05:53 PDT
Benjamin Poulain
Comment 3 2015-05-05 18:11:59 PDT
Comment on attachment 252427 [details] Patch lgtm
Alex Christensen
Comment 4 2015-05-05 18:14:27 PDT
Note You need to log in before you can comment on or make changes to this bug.