<?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: generating a &quot;PropertyBag&quot; aka PScustomObject in C#</title>
	<atom:link href="http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/</link>
	<description>invoke-intelligence &#124; where { $_.necessary }</description>
	<lastBuildDate>Thu, 19 Apr 2012 17:42:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/comment-page-1/#comment-1280</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 04 Mar 2012 08:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/#comment-1280</guid>
		<description>Worked it out ...

$a = new-object object[] 50000
for($i = 0;$i -lt 50000;$i++) { $a[$i] = [snapinini.newobjecthelper]::newPsCustomObject2(); }</description>
		<content:encoded><![CDATA[<p>Worked it out &#8230;</p>
<p>$a = new-object object[] 50000<br />
for($i = 0;$i -lt 50000;$i++) { $a[$i] = [snapinini.newobjecthelper]::newPsCustomObject2(); }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/comment-page-1/#comment-1279</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 02 Mar 2012 09:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/#comment-1279</guid>
		<description>I was playing with your sample and found a massive performance difference between

for($i = 0;$i -lt 50000;$i++) { $a = [snapinini.newobjecthelper]::newPsCustomObject2(); }

and

$a = @()
for($i = 0;$i -lt 50000;$i++) { $a += [snapinini.newobjecthelper]::newPsCustomObject2(); }

Any tips for improving the performance when you write each new object into an array?</description>
		<content:encoded><![CDATA[<p>I was playing with your sample and found a massive performance difference between</p>
<p>for($i = 0;$i -lt 50000;$i++) { $a = [snapinini.newobjecthelper]::newPsCustomObject2(); }</p>
<p>and</p>
<p>$a = @()<br />
for($i = 0;$i -lt 50000;$i++) { $a += [snapinini.newobjecthelper]::newPsCustomObject2(); }</p>
<p>Any tips for improving the performance when you write each new object into an array?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Custom Powershell Objects and Performance &#124; Learn Powershell &#124; Achieve More</title>
		<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/comment-page-1/#comment-1080</link>
		<dc:creator>Custom Powershell Objects and Performance &#124; Learn Powershell &#124; Achieve More</dc:creator>
		<pubDate>Mon, 20 Sep 2010 01:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/#comment-1080</guid>
		<description>[...] Brandon Shell and Karl Prosser tested this before with some interesting results.  These guys are a lot smarter than me and showed some nice things including using C# code to [...]</description>
		<content:encoded><![CDATA[<p>[...] Brandon Shell and Karl Prosser tested this before with some interesting results.  These guys are a lot smarter than me and showed some nice things including using C# code to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TeX HeX</title>
		<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/comment-page-1/#comment-604</link>
		<dc:creator>TeX HeX</dc:creator>
		<pubDate>Fri, 30 Jan 2009 08:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/#comment-604</guid>
		<description>Thanks a lot Karl! This performance test and the code sample is exactly what I was searching for.</description>
		<content:encoded><![CDATA[<p>Thanks a lot Karl! This performance test and the code sample is exactly what I was searching for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The PowerShell Guy : PowerShell Performance Series Part 2 (.NET method call not always faster as PowerShell shortcut)</title>
		<link>http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/comment-page-1/#comment-479</link>
		<dc:creator>The PowerShell Guy : PowerShell Performance Series Part 2 (.NET method call not always faster as PowerShell shortcut)</dc:creator>
		<pubDate>Sun, 15 Jun 2008 15:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://karlprosser.com/coder/2008/06/12/generating-a-propertybag-aka-pscustomobject-in-c/#comment-479</guid>
		<description>[...] generating a &quot;PropertyBag&quot; aka PScustomObject in C#  [...]</description>
		<content:encoded><![CDATA[<p>[...] generating a &quot;PropertyBag&quot; aka PScustomObject in C#  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

