[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|