[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Backtracking and eternal loops caused by regular

Subject: RE: Backtracking and eternal loops caused by regular expressions matching: what to expect from implementations?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 23 Jan 2007 23:32:20 -0000
RE:  Backtracking and eternal loops caused by regular
> I am under the impression that such behavior is not 
> desirable, but I am unsure if there is anything in the specs 
> that says something about how implementations should/must 
> deal with this. As a comparison, I tried the example with 
> Perl, which gave no noticeable performance troubles.

(a) Poor performance is never desirable, though sometimes it's unavoidable
given the specification of the language you are using.

(b) The specs have nothing to say about performance.

(c) Saxon relies entirely on the regex engines in the underlying platform
(Java or .NET). I dare say there are cases where one regex engine will find
an optimization that another one misses.

(d) I was under the impression that regular expression evaluation will
always terminate, though of course it's possible to construct cases where
that might require extreme patience to observe.

Michael Kay
http://www.saxonica.com/ 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.