<?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: To Clone or not to Clone</title>
	<atom:link href="http://www.iam.unibe.ch/~akuhn/blog/2009/to-clone-or-not-to-clone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iam.unibe.ch/~akuhn/blog/2009/to-clone-or-not-to-clone/</link>
	<description>Random notes on software, programming and languages.</description>
	<pubDate>Thu, 24 May 2012 10:42:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: akuhn</title>
		<link>http://www.iam.unibe.ch/~akuhn/blog/2009/to-clone-or-not-to-clone/comment-page-1/#comment-3160</link>
		<dc:creator>akuhn</dc:creator>
		<pubDate>Thu, 27 Aug 2009 09:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.iam.unibe.ch/~akuhn/blog/?p=299#comment-3160</guid>
		<description>Good point, I like to idea of a dynamic default. This could even be done per node: if there is only one consumer  RERUN should be the default.

In general, if there are n consumer, only n-1 results need to be cloned thus we could omit the clone for the last consumer. Alas, if a grandchild-consumer triggers a rerun of a child-consumer, this child consumes its input twice or more. I am still trying to figure out the best strategy to omit unnecessary clones. We are also working on a solution to dispose cached return values after their last use to reduce the memory footprint of running large test suites.</description>
		<content:encoded><![CDATA[<p>Good point, I like to idea of a dynamic default. This could even be done per node: if there is only one consumer  RERUN should be the default.</p>
<p>In general, if there are n consumer, only n-1 results need to be cloned thus we could omit the clone for the last consumer. Alas, if a grandchild-consumer triggers a rerun of a child-consumer, this child consumes its input twice or more. I am still trying to figure out the best strategy to omit unnecessary clones. We are also working on a solution to dispose cached return values after their last use to reduce the memory footprint of running large test suites.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.iam.unibe.ch/~akuhn/blog/2009/to-clone-or-not-to-clone/comment-page-1/#comment-3159</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 26 Aug 2009 19:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.iam.unibe.ch/~akuhn/blog/?p=299#comment-3159</guid>
		<description>"InjectionPolicy.RERUN reruns all providers whenever injection values are required. This strategy is most stable, however you lose the benefit of faster test execution." At least the "stack-creating"-provider is only run two times in the example, instead of three times, as it would be the case if creating the stack would be a real test and not a mere setup. 
So do you really "lose the benefit of faster test execution."? A bit yes, but can you estimate the average number of reuses of provider test cases? Say if test cases would be reused only once on average, the Rerun-policy would make a decent default.

In general it is good to have those three options of course you came up with.
Keep up that great work including this blog

Cheers

Markus</description>
		<content:encoded><![CDATA[<p>&#8220;InjectionPolicy.RERUN reruns all providers whenever injection values are required. This strategy is most stable, however you lose the benefit of faster test execution.&#8221; At least the &#8220;stack-creating&#8221;-provider is only run two times in the example, instead of three times, as it would be the case if creating the stack would be a real test and not a mere setup.<br />
So do you really &#8220;lose the benefit of faster test execution.&#8221;? A bit yes, but can you estimate the average number of reuses of provider test cases? Say if test cases would be reused only once on average, the Rerun-policy would make a decent default.</p>
<p>In general it is good to have those three options of course you came up with.<br />
Keep up that great work including this blog</p>
<p>Cheers</p>
<p>Markus</p>
]]></content:encoded>
	</item>
</channel>
</rss>

