Artifact
431a23dd1f77703bbe55cf3ec620d79b3bd6cd78:
Ticket change
[431a23dd1f]
- New ticket
[218859ffffffffff|218859ffff] <i>regexp/regsub operates veeery long on long strings sometimes</i>.
by
nobody on
2000-10-26 01:06:47.
D 2000-10-26T01:06:47
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2440\sBug\nVersion:\s8.1.1\nSubmitDate:\s'1999-07-23'\nLastModified:\s'1999-08-04'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sstanton\nRelatedBugIDs:\s2447\nOS:\sWindows\sNT\nOSVersion:\sv4.0\sSP5\s(Also\son\sWin\s98)\nMachine:\sX86\nFixedDate:\s'1999-08-04'\nFixedInVersion:\s8.2b3\nClosedDate:\s'2000-10-25'\n\n\nName:\nIngemar\sHansson\n\nReproducibleScript:\n#\sI'm\sinterested\sin\sextracting\sa\sfile\sname\sat\sthe\send\sof\sa\sline\n\s\s\s\s#\sThe\sfile\sname\smay\scontain\swhite\sspaces\n\s\s\s\s#\sGenerate\sa\sstring\sthat\slooks\slike\sthe\sone\sI\suse\s(764\schars\slong)\n\s\s\s\sset\sline\s{tcc\s-o\sx:\\xxx\\xxx.o\s}\n\s\s\s\sfor\s{set\si\s0}\s{$i\s<\s20}\s{incr\si}\s{\n\s\s\s\s\s\s\s\sappend\sline\s{-x:\\xxx_xxxxxx\\xxxxxx\\xxx_xx_xxxxx\s}\n\s\s\s\s}\n\s\s\s\sappend\sline\s{z:\\zzz_zzzzzz\\zzzzzz\\zzz_zz_zzzzzzz\\zzzzzz.c}\n\s\s\s\s\n\s\s\s\s#\sThis\scommands\stakes\slong\stime\n\s\s\s\sregexp\s--\s{(?:tcc|tasm)\s-o\s.*?\s(.:.*)}\s$line\s""\sfile\n\s\s\s\s\n\s\s\s\s#\sThis\sone\sis\spretty\sfast\n\s\s\s\sregexp\s--\s{(?:tcc|tasm)\s(-o\s.*?)\s(.:.*)}\s$line\s""\s""\sfile\n\s\s\s\s\n\s\s\s\s#\sThis\sone\sis\salso\spretty\sfast\n\s\s\s\sregexp\s--\s{(tcc|tasm)\s-o\s.*?\s(.:.*)}\s$line\s""\s""\sfile\n\s\s\s\s\n\s\s\s\s#\sThis\sone\sis\sreally\sfast\n\s\s\s\sregexp\s--\s{(tcc|tasm)\s-o\s.*?\s(.:.*)}\s$line\s""\s""\sfile\n\nObservedBehavior:\nThe\sproblem\sseems\sto\sbe\susing\sof\snon-capturing\sparenthesis\sin\sa\sregular\n\s\s\s\sexpression.\sIn\sthe\sexample\sabove\s"long\stime"\sis\sabour\s5\sseconds\son\sa\s266\n\s\s\s\sMHz\sPentium\sII.\s"Pretty\sfast"\sis\sabout\s20\smilliseconds\sand\s"really\sfast"\n\s\s\s\sis\s1\smillisecond.\n\s\s\s\sIn\smy\sreal\scase\sthe\sstrings\sare\sabout\s1500\scharacters\slong,\sand\sthen\sthe\n\s\s\s\s"long\stime"\sis\sabout\s50\sseconds\sand\s"really\sfast"\sis\sabout\s3\n\s\s\s\smilliseconds.\n\nDesiredBehavior:\nObviously\sI\swant\sto\ssee\s"really\sfast"\stimes\sin\sfor\sany\sregular\n\s\s\s\sexpression.\n\n\n\n07/28/1999\s14:46\s-\sstanton\s-\sThis\sis\sa\smajor\sperformance\sissue\swith\sregexp.\s\sHenry\sSpencer\sis\slooking\sinto\sthe\sproblem.\n\n08/04/1999\s17:45\s-\sstanton\s-\sApplied\sa\spatch\ssubmitted\sby\sHenry\sthat\ssignificantly\simproves\sthe\sperformance\sof\sthese\stypes\sof\sexpression.\n\n
J foundin final:\s8.1.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 43.\sRegexp
J title regexp/regsub\soperates\sveeery\slong\son\slong\sstrings\ssometimes
J type Bug
K 218859ffffffffffffffffffffffffffffffffff
U nobody
Z 5042b78f0ba6e85f62c63f49f149678e