<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Richard&amp;#39;s World</title><subtitle type="html" /><id>http://powershell.com/cs/blogs/richard/atom.aspx</id><link rel="alternate" type="text/html" href="http://powershell.com/cs/blogs/richard/default.aspx" /><link rel="self" type="application/atom+xml" href="http://powershell.com/cs/blogs/richard/atom.aspx" /><generator uri="http://communityserver.org" version="4.1.30929.2835">Community Server</generator><updated>2010-10-28T08:01:00Z</updated><entry><title>PowerShellPlus 3.5 Speed Improvement</title><link rel="alternate" type="text/html" href="/cs/blogs/richard/archive/2010/10/28/powershellplus-3-5-speed-improvement.aspx" /><id>/cs/blogs/richard/archive/2010/10/28/powershellplus-3-5-speed-improvement.aspx</id><published>2010-10-28T13:01:00Z</published><updated>2010-10-28T13:01:00Z</updated><content type="html">&lt;p&gt;Long time users have mentioned that they noticed a big improvement in running commands. &amp;nbsp;I am happy to report that we have indeed improved performance by making a key change to how the Variables Tool Window is managed after any command is run in the console including when a script is executed. We corrected the following issues that contributed to sub-optimal performance:&lt;/p&gt;
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;The Variables window was being completely reloaded no matter whether anything changed or not. Since this window contains the running state of all PowerShell system and user objects, this could result in a significant performance hit over the lifetime of the current Console session&lt;/li&gt;
&lt;li&gt;The Variables window was being updated whether it was visible or not&lt;/li&gt;
&lt;li&gt;Object arrays containing 1000&amp;#39;s of elements was taking a significant amount of time to reload&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;The performance enhancements to PowerShellPlus 3.5 now includes the following:&lt;/p&gt;
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;Simple variables (i.e. $a=1) are only updated if the values have changed&lt;/li&gt;
&lt;li&gt;The Variables window is NOT updated if it is not visible which includes the View being off or the window being pinned to the side&lt;/li&gt;
&lt;li&gt;A separate copy is made of object arrays containing more than 10 elements since more than are not displayed in the Variable list and the original copy is preserved so that it can be accessed in the Console or script code&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;These improvements now to contribute to a major improvement in running commands or scripts!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The current caveats still exist that could cause performance issues:&lt;/p&gt;
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;Complex object variables containing a hierarchy of values are always reloaded since the time to figure out if they are different did not contribute to an improvement&lt;/li&gt;
&lt;li&gt;If you drill into a complex object and leave the leaf node open it will take time to refresh the Variables tree since certain objects need to be re-acquired to display their value (i.e. a round trip call to a server)&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;The workaround is to make sure not to leave complex object leaf nodes open in the Variables window between running commands in the Console or scripts in the Code Editor.&lt;/p&gt;
&lt;p&gt;One other note - several customers reported that certain complex objects were causing PowerShellPlus to halt. The problem was identified as an error when attempting to Cast special variable object values to a PSObject for display in the Variables tree. That is now fixed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PowerShellPlus 3.5 was released in early September which was followed by two minor service packs about 2 weeks apart. The current release is 3.5.2130.4. You can run Check for Updates on the Help menu to see if you have the latest.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We concentrated on raising the quality bar in this release along we many great new features.&amp;nbsp;I encourage everyone to read the Release Notes during Setup. You can also find them along with two additional documents, &lt;b&gt;Administrators Guide to Windows PowerShell Remoting&lt;/b&gt; and &lt;b&gt;Managing SharePoint 2010 with PowerShell Plus&lt;/b&gt;, on the Start Menu under Idera &amp;gt; PowerShellPlus &amp;gt; Documents.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To get the latest version if you are registered user, go to the&amp;nbsp;&lt;a target="_blank" href="http://www.idera.com/Support/Updates.aspx"&gt;Support site&lt;/a&gt; and request an upgrade.&lt;/p&gt;
&lt;p&gt;To get a trial, go to the &lt;a target="_blank" href="http://www.idera.com/Products/PowerShell/PowerShell-Plus/"&gt;Product page&lt;/a&gt; and request a trial.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;Richard Giles &amp;bull;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;Idera&amp;nbsp;&amp;nbsp;&amp;bull;&amp;nbsp;&amp;nbsp;Product Manager - PowerShell Products&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://powershell.com/cs/aggbug.aspx?PostID=8019" width="1" height="1"&gt;</content><author><name>Richard Giles</name><uri>http://powershell.com/cs/members/Richard-Giles/default.aspx</uri></author><category term="PowerShellPlus" scheme="http://powershell.com/cs/blogs/richard/archive/tags/PowerShellPlus/default.aspx" /></entry></feed>
