.
D 2016-02-25T14:33:02.124
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\sdubious\simplementation\sof\stcllib's\s::textutil::trim::trimPrefix\scaught\smy\seye.\sWhy\sscan\sthe\sfull\sstring\swhen\sactually\slooking\sat\sthe\sstart\sonly?\r\n\r\n%\sset\shaystack\s[string\srepeat\sabc\s1000]d\r\n%\sset\sneedle\sabcd\r\n%\sstring\sfirst\s$needle\s$haystack\r\n2997\r\n%\stime\s{string\sfirst\s$needle\s$haystack}\s1000\r\n10.149\smicroseconds\sper\siteration\r\n%\stime\s{string\sfirst\s$needle\s$haystack\s0\s0}\s1000\r\n0.712\smicroseconds\sper\siteration\r\n\r\nIn\sthis\sform,\sI\scannot\sattach\smy\spatch\sfile.\sWill\sattach\sor\spost\safter\screating\sthis\sticket.\sThe\spatch\sis\sfor\sthe\simplementation\sand\sthe\stests,\snot\sfor\sthe\sdocumentation.
J foundin 8.6.4
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 5ef84f1ed636fd4b80333e656cf7dfe1164a9802
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 18.\sCommands\sM-Z
J title add\sparameter\s?lastIndex?\sto\s[string\sfirst]
J type Patch
K d2323d6c284a5081e818dc02f0bbe695a7aa1c61
U anonymous
Z a8892c5b9d186630b8f6fc9293ca6a8f