<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Benchmarking: Testing a string against a single composite Regular Expressions, or an array of Regexps</title>
	<atom:link href="http://www.doboism.com/blog/2009/12/21/benchmarking-testing-a-string-against-a-single-composite-regular-expressions-or-an-array-of-regexps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doboism.com/blog/2009/12/21/benchmarking-testing-a-string-against-a-single-composite-regular-expressions-or-an-array-of-regexps/</link>
	<description>Software and Elseware</description>
	<lastBuildDate>Sun, 28 Feb 2010 23:27:47 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Amitay Dobo</title>
		<link>http://www.doboism.com/blog/2009/12/21/benchmarking-testing-a-string-against-a-single-composite-regular-expressions-or-an-array-of-regexps/comment-page-1/#comment-177</link>
		<dc:creator>Amitay Dobo</dc:creator>
		<pubDate>Mon, 21 Dec 2009 21:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.doboism.com/blog/?p=81#comment-177</guid>
		<description>Thanks for the comment, Ori, and for correcting the inaccuracies above. I&#039;ve found (and didn&#039;t finish reading) an interesting article discussing NFA implementations and comparing them with common backtracking algorithms at http://swtch.com/~rsc/regexp/regexp1.html . It seems that even when the &quot;regExp&quot; is an actual Regular Expression (i.e  no backreferenes) libraries such as used by SpiderMonkey indeed do not use NFA/DFA. 
I wonder how much of the improvements i&#039;ve seen comes down to staying in the compiled C context of the regExp Engine when backtracking on the outermost &quot;&#124;&quot; operators, as opposed to iterating in javascript and going back to the engine for each test.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment, Ori, and for correcting the inaccuracies above. I&#8217;ve found (and didn&#8217;t finish reading) an interesting article discussing NFA implementations and comparing them with common backtracking algorithms at <a href="http://swtch.com/~rsc/regexp/regexp1.html" rel="nofollow">http://swtch.com/~rsc/regexp/regexp1.html</a> . It seems that even when the &#8220;regExp&#8221; is an actual Regular Expression (i.e  no backreferenes) libraries such as used by SpiderMonkey indeed do not use NFA/DFA.<br />
I wonder how much of the improvements i&#8217;ve seen comes down to staying in the compiled C context of the regExp Engine when backtracking on the outermost &#8220;|&#8221; operators, as opposed to iterating in javascript and going back to the engine for each test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ori Berger</title>
		<link>http://www.doboism.com/blog/2009/12/21/benchmarking-testing-a-string-against-a-single-composite-regular-expressions-or-an-array-of-regexps/comment-page-1/#comment-176</link>
		<dc:creator>Ori Berger</dc:creator>
		<pubDate>Mon, 21 Dec 2009 10:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.doboism.com/blog/?p=81#comment-176</guid>
		<description>Well, it&#039;s been very long since regexps were actually compiled to NFAs or DFA, or for that matter, since they have been regular expressions in the CS sense of the word.

There are a few matchers around that actually do NFA/DFA stuff, but none of the standard libraries (in Perl, Python, JavaScript, Java, ...) do -- because that would mean no backreferences which all like to support following Perl.</description>
		<content:encoded><![CDATA[<p>Well, it&#8217;s been very long since regexps were actually compiled to NFAs or DFA, or for that matter, since they have been regular expressions in the CS sense of the word.</p>
<p>There are a few matchers around that actually do NFA/DFA stuff, but none of the standard libraries (in Perl, Python, JavaScript, Java, &#8230;) do &#8212; because that would mean no backreferences which all like to support following Perl.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
