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.
Created attachment 252424 [details] Patch
Created attachment 252427 [details] Patch
Comment on attachment 252427 [details] Patch lgtm
http://trac.webkit.org/changeset/183845