Displaying 2 results from an estimated 2 matches for "regexprpcr".
Did you mean:
regexprpcre
2017 Jan 06
0
strsplit(perl=TRUE), gregexpr(perl=TRUE) very slow for long strings
...e number of pattern matches in their input strings. E.g.,
the attached test 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...
2019 Feb 19
1
patch for gregexpr(perl=TRUE)
Hi all,
Several people have noticed that gregexpr is very slow for large subject
strings when perl=TRUE is specified.
-
https://stackoverflow.com/questions/31216299/r-faster-gregexpr-for-very-large-strings
-
http://r.789695.n4.nabble.com/strsplit-perl-TRUE-gregexpr-perl-TRUE-very-slow-for-long-strings-td4727902.html
- https://stat.ethz.ch/pipermail/r-help/2008-October/178451.html
I figured out