<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx</link><description>Q : Assume we have 2000 unknown types; (however) we know each type has a constructor with integer as its' only parameter type. How to create objects 10000 times for each type (and make such late-new fast)? Activator.CreateInstance comes to my fingers</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#494335</link><pubDate>Fri, 18 Nov 2005 10:46:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:494335</guid><dc:creator>Peli</dc:creator><description>Aren't you on vacation ? :)</description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#532656</link><pubDate>Wed, 15 Feb 2006 21:31:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532656</guid><dc:creator>Alam</dc:creator><description>The code seems to be just like psudo code. Can you please explain those codes better? I understand the issue ir comparing, not teaching how it is done. For instance, for dynamic method one, what are the parameters you pass in and how it is actually working???&lt;br&gt;&lt;br&gt;Thanks</description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#673140</link><pubDate>Fri, 21 Jul 2006 00:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:673140</guid><dc:creator>Jeff</dc:creator><description>My result show a different story. &amp;nbsp;My &amp;quot;Parameter&amp;quot; test have a smiliar result to the &amp;quot;Parameterless&amp;quot; test, ie: DynamicMethod+Delegate approach is 10 times faster than &amp;quot;Activator.CreateInstance&amp;quot; approach.&lt;br&gt;&lt;br&gt;I don't quite believe that with parameter, it jump from less than 6 second to almost 9.5 minutes(568 seconds). Something is not quite right. Could you please post your testing source code? &amp;nbsp;Thanks.</description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#673395</link><pubDate>Fri, 21 Jul 2006 05:43:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:673395</guid><dc:creator>Haibo_Luo</dc:creator><description>Please find the code here: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/haibo_luo/articles/494008.aspx"&gt;http://blogs.msdn.com/haibo_luo/articles/494008.aspx&lt;/a&gt;. &lt;br&gt;At that time, the community server did not support attachment.</description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#673876</link><pubDate>Fri, 21 Jul 2006 17:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:673876</guid><dc:creator>Jeff</dc:creator><description>Thanks. &amp;nbsp;What do I do with the perl code? </description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#676800</link><pubDate>Mon, 24 Jul 2006 18:53:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:676800</guid><dc:creator>Jeff</dc:creator><description>Ok, you are right. &amp;nbsp;I wasn't running 2000 types. Thanks, great help.</description></item><item><title>Activator::CreateInstance performance for more than 16 types == baaaaad</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#754926</link><pubDate>Fri, 15 Sep 2006 02:29:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:754926</guid><dc:creator>hacked.brain</dc:creator><description /></item><item><title>Activator.CreateInstance speed</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#1201910</link><pubDate>Mon, 04 Dec 2006 03:50:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1201910</guid><dc:creator>Rory Primrose</dc:creator><description>&lt;p&gt;This is another one of those memory (as in I want to keep some kind of reference to this post) type of&lt;/p&gt;
</description></item><item><title>  Singleton provider at  THE COLUMN</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#1235639</link><pubDate>Fri, 08 Dec 2006 02:59:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1235639</guid><dc:creator>  Singleton provider at  THE COLUMN</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.thecolumn.dk/2006/12/08/c/singleton-provider/"&gt;http://www.thecolumn.dk/2006/12/08/c/singleton-provider/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Activator.CreateInstance and beyond</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#1570329</link><pubDate>Thu, 01 Feb 2007 09:11:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1570329</guid><dc:creator>Jeff Gonzalez</dc:creator><description>&lt;p&gt;If it is the same type you are calling over and over, you can implement IClonable().&lt;/p&gt;
&lt;p&gt;Then you could call Activator.CreateInstance once, store the result in a hashtable and use it to get a blank copy of the type.&lt;/p&gt;
&lt;p&gt;You don't incur the Activator.CreateInstance penalty after the initial run.&lt;/p&gt;
</description></item><item><title>反射，我们需要知道什么？</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#3976942</link><pubDate>Fri, 20 Jul 2007 19:00:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3976942</guid><dc:creator>小春</dc:creator><description>&lt;p&gt;我们在项目中经常用哪种方式来反射方法来创建实例，调用指定的方法和属性？它们的性能怎么样？本文收藏了国外上面一些优秀的文章，仅供参考。&lt;/p&gt;
</description></item><item><title>Reshef&amp;#8217;s tip of the day  &amp;raquo; Blog Archive   &amp;raquo; Reflection and performance: DynamicMethod</title><link>http://blogs.msdn.com/haibo_luo/archive/2005/11/17/494009.aspx#6788489</link><pubDate>Mon, 17 Dec 2007 14:07:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6788489</guid><dc:creator>Reshef’s tip of the day  » Blog Archive   » Reflection and performance: DynamicMethod</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://jajahdevblog.com/reshef/?p=26"&gt;http://jajahdevblog.com/reshef/?p=26&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>