<?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>What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx</link><description>A reader asked me last week 
 
 
 
 
 I have always used Server.CreateObject in ASP scripts and WScript.CreateObject in WSH scripts, because I was unable to find any *convincing* information on the subject and therefore assumed that they were there</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#10040985</link><pubDate>Wed, 21 Jul 2010 15:48:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10040985</guid><dc:creator>Olivier Mengué (dolmen)</dc:creator><description>&lt;p&gt;@Eric: &amp;quot;WSH uses this weird thing with the string prefixes&amp;quot;&lt;/p&gt;
&lt;p&gt;In fact this is weird. This means one can not dynamically bind events after the COM object has been created, as the event function has to exist in the host namespace before the object creation. This is quite different from what is possible in an IE host and makes writing framework that work in both environments more difficult.&lt;/p&gt;
&lt;p&gt;For example, XMLHttpRequest is easier to use in synchronous mode in WSH.&lt;/p&gt;
&lt;p&gt;This is why almost no one use event binding in WSH.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10040985" width="1" height="1"&gt;</description></item><item><title>createobject wscript</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#8519402</link><pubDate>Mon, 19 May 2008 21:07:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8519402</guid><dc:creator>createobject wscript</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://kaitlin.mediaplusnews.info/createobjectwscript.html"&gt;http://kaitlin.mediaplusnews.info/createobjectwscript.html&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8519402" width="1" height="1"&gt;</description></item><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#7118601</link><pubDate>Tue, 15 Jan 2008 18:36:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7118601</guid><dc:creator>Eric Lippert</dc:creator><description>&lt;p&gt;Sure, you could do that, but that would be the wrong thing to do.&lt;/p&gt;
&lt;p&gt;Doing so would answer the question &amp;quot;is there a perfornance difference in a fake, contrived, small, unrealistic scenario?&amp;quot; &amp;nbsp;Do the people you are going to show this to care about the performance of fake, contrived, small and unrealistic scenarios?&lt;/p&gt;
&lt;p&gt;If the question you want to answer is &amp;quot;what is the performance difference in the real scenario that actually matters to our business?&amp;quot; then find a way to measure that.&lt;/p&gt;
&lt;p&gt;This is almost certainly the wrong area for exploration. It is a waste of time and money to spend any time analyzing and remediating anything other than the _slowest fixable thing_. &amp;nbsp;If the difference between CO and S.CO takes up 0.1% of the total time of your application, then fixing all of them cannot speed it up by more than 0.1%. &amp;nbsp;There is probably a bigger win somewhere else; spend the time that you would have spent twiddling CreateObject calls on finding out where that bigger win is. &amp;nbsp;When you do so, you'll then have the figures to show the people who write the cheques what their return on investment is.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7118601" width="1" height="1"&gt;</description></item><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#7117687</link><pubDate>Tue, 15 Jan 2008 14:40:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7117687</guid><dc:creator>Anand Sagar</dc:creator><description>&lt;p&gt;Iam working on a project where Server.CreateObject is replaced with CreateObject all over the project. Though I know that this will improve performance in terms of Memory overload because of how the object creation happes with CreateObject, I would like to have 'visible scenarios' that i create with code to show people that '&amp;quot;look. here's the difference&amp;quot;. Is it possible ?&lt;/p&gt;
&lt;p&gt;Can i create a simple project to simulate and see the performance differences between Server.CreateObject and CreateObject ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Anand.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7117687" width="1" height="1"&gt;</description></item><item><title>Scripting Type Library Constant Injection Performance Characteristics, Part One</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#4813175</link><pubDate>Fri, 07 Sep 2007 21:13:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4813175</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;p&gt;(Sorry about the title. I work for Microsoft; we like nouns .) Over a year ago now a reader noted in&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4813175" width="1" height="1"&gt;</description></item><item><title>Guangming&amp;#8217;s Blog &amp;raquo; Difference between CreateObject calls</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#730069</link><pubDate>Tue, 29 Aug 2006 17:57:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:730069</guid><dc:creator>Guangming’s Blog » Difference between CreateObject calls</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://www.guangmingsoft.net/wordpress/index.php/146/difference-between-createobject-calls/"&gt;http://www.guangmingsoft.net/wordpress/index.php/146/difference-between-createobject-calls/&lt;/a&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=730069" width="1" height="1"&gt;</description></item><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#151073</link><pubDate>Tue, 08 Jun 2004 17:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:151073</guid><dc:creator>James Hugard</dc:creator><description>IMHO, the mantra should be &amp;quot;when it matters, profile it.&amp;quot;&lt;br&gt;&lt;br&gt;This is why the command-line (developer) version of our script-host spits out both parse time and run time.  There is also a &amp;quot;loop&amp;quot; command line option so that we can measure run times after our copious lazy instantiation has done its thing.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=151073" width="1" height="1"&gt;</description></item><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#149695</link><pubDate>Sun, 06 Jun 2004 21:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:149695</guid><dc:creator>Marcus Tucker</dc:creator><description>Cheers for clearing that up - another cargo-cultist mantra shot down in flames! :(&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://blog.marcustucker.com/blog_comment.asp?blog_id=22"&gt;http://blog.marcustucker.com/blog_comment.asp?blog_id=22&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=149695" width="1" height="1"&gt;</description></item><item><title>re: What's the Difference between WScript.CreateObject, Server.CreateObject and CreateObject?</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#149613</link><pubDate>Sun, 06 Jun 2004 13:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:149613</guid><dc:creator>Eric Lippert</dc:creator><description>Yes, JScript and VBScript share the code for everything they have in common -- the engine framework, type library importer, regexp parser, etc.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=149613" width="1" height="1"&gt;</description></item><item><title>re: Type library importation [sic] code</title><link>http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx#149362</link><pubDate>Sun, 06 Jun 2004 00:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:149362</guid><dc:creator>Marcus Tucker</dc:creator><description>Is the slow loading of constants from typelibs also a true for VBScript too? (Compared to using constants defined in the code, such as with ADOVBS.INC?)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=149362" width="1" height="1"&gt;</description></item></channel></rss>