<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Slow program</title><link>https://www.infopathdev.com:443/forums/thread/22044.aspx</link><pubDate>Fri, 27 Jul 2007 11:51:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22044</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22044</wfw:commentRss><description>&lt;p&gt;Hi BanGotti,&lt;/p&gt;&lt;p&gt;There are blogs and tutorials all over the Internet concerning this.&amp;nbsp; Just do a search for &amp;quot;InfoPath Performance&amp;quot; and you should find plenty of hints.&amp;nbsp; Here&amp;#39;s some of mine:&lt;/p&gt;&lt;p&gt;- Add calls to &lt;font size="2"&gt;thisXDocument.View.DisableAutoUpdate() and &lt;font size="2"&gt;thisXDocument.View.EnableAutoUpdate()&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;- Switch views when doing a lot of heavy XML moving&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;- Use a secondary DOM to do XML manipulation, then mirror into the Main DOM in one action&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;The reason for the big perf hits is because InfoPath does a lot of schema validation on the Main DOM.&amp;nbsp; Moving to a secondary DOM curtails all of this validation and provides a huge perf boost.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Slow program</title><link>https://www.infopathdev.com:443/forums/thread/22010.aspx</link><pubDate>Thu, 26 Jul 2007 13:16:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22010</guid><dc:creator>BanGotti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22010</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I m working on an InfoPath solution where I had to add&amp;nbsp;and delete nodes&amp;nbsp;using the managed code. However everytime I do this kind of operation, it takes a large amount of time (6 to 7 sec).&lt;/p&gt;&lt;p&gt;For exemple, my program allows the user search a list of information by clicking on a button, this information is then displayed in a list box (a list of nodes generated by the managed code).&lt;/p&gt;&lt;p&gt;My algorithm for the research:&lt;/p&gt;&lt;p&gt;1: if nb of nodes &amp;gt;0 THEN remove all nodes&lt;/p&gt;&lt;p&gt;2:&amp;nbsp;if nb of nodes &amp;gt;1 THEN add N nb of nodes desired&lt;/p&gt;&lt;p&gt;3: add N strings&amp;nbsp; in N nodes&lt;/p&gt;&lt;p&gt;I would like to know whether there is a way to make it quicker? &lt;/p&gt;&lt;p&gt;and if not Why&amp;nbsp;is InfoPath so slow everytime we add or remove some nodes? (it is only XML and XSLT&amp;nbsp;is n&amp;#39;t it?)&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;.Net 1.1 InfoPath 2003 VS 2005 C#&lt;/p&gt;</description></item></channel></rss>