Displaying 1 result from an estimated 1 matches for "subtre".
Did you mean:
subtle
2017 Jan 06
0
strsplit(perl=TRUE), gregexpr(perl=TRUE) very slow for long strings
...est function times gsub, strsplit, and gregexpr, with
perl TRUE (PCRE) and FALSE (TRE), when the input string contains 'n'
matches to the given pattern. Notice the quadratic (in n) time growth
for the StrSplitPCRE and RegExprPCRE columns.
> regex.perf.test(N=2^(11:20))
N SubTRE SubPCRE StrSplitTRE StrSplitPCRE RegExprTRE RegExprPCRE
elapsed 2048 0.00 0.00 0.00 0.00 0.00 0.00
elapsed 4096 0.00 0.00 0.01 0.00 0.00 0.00
elapsed 8192 0.00 0.00 0.00 0.01 0.00 0.01
elaps...