> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Shane Ginnane > Sent: Wednesday, May 28, 2008 7:47 PM > To: [email protected] > Subject: Re: Just for consideration: offloading regex > processing to zIIP / zAAP? > > John Mc wrote on 29/05/2008 05:36:21 AM: > > > I love using regular expressions in Perl, awk, and grep. > However, they > > can be very CPU intensive. > > I would find it *really* hard to believe Larry and his > monastic bretheren > would allow this. I am constantly amazed at what Perl can do - > efficiently. > grep is handy, but can be a CPU pig - especially for Unicode. > Their devs > have a (at least one) bug open against this. > > Shane ... > (all comments non-z based; I have no knowledge of how good > the port is. > Must get around finding a system to play on someday)
You may be right. I did not do my own measurements. I was going by comments by the author or "Mastering Regular Expressions" where he indicated that some regular expressions that he tested ran for HOURS on a powerful Intel desktop. His point was not that Perl was inefficient, but that regular expressions, especially if improperly designed, can do a lot of "back tracking" which can unexpectedly eat CPU like a kid eating candy. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

