<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GraphicsLayer.ClearGraphics performance problem even worse with v2.0 in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665382#M17072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have identified the issue as a problem with Silverlight. However we have a workaround in place, and you should see vastly improved performance (10-20x) in the next release. Sorry for the inconvenience, and thanks for reporting this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For what its worth, Bing would also be similarly affected if you tried to do the same amount of functionality that our graphics does &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 16:35:07 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2010-10-15T16:35:07Z</dc:date>
    <item>
      <title>GraphicsLayer.ClearGraphics performance problem even worse with v2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665381#M17071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The performance of GraphicsLayer.ClearGraphics() is very slow, and 2.0 is slower than 1.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Feb 2010, I reported a performance problem for v1.1 of the Silverlight web mapping APIs: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calling GraphicsLayer.ClearGraphics() on a layer that has around 2200 graphics (SimpleLineSymbols) on it was very slow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2455&amp;amp;t=301151#941657"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2455&amp;amp;t=301151#941657&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run my latest code to compare performance of v1.1 (silverlight 3) to 2.0 (silverlight 4.)&amp;nbsp; It appears using my current code base that ClearGraphics() in v2.0 is on average 67% slower than v1.1, and 1111% slower than the bing equiv.&amp;nbsp; In absolute time terms, my slowest ClearGraphics() now compares as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;v2.0 = 3.89 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;v1.1 = 2.42 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bing = 0.24 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this is not a minor amount of time to wait.&amp;nbsp; Since these are UI controls, I think I need to clear these on the UI thread - and so the UI hangs up for almost 4 seconds in the above case - and that is before I start drawing new graphics. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a positive note, it does appear the times to actually render new graphics has improved by about 67% going from v1.1 to 2.0 (thanks!); however, the absolute times for rendering are all less than a second, and so this change has significantly less impact on the overall performance of my system than the ClearGraphics() method performance does. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to speed up or work around ClearGraphics()'s slow performance?&amp;nbsp; Is there a new version coming that might be able to improve this issue?&amp;nbsp; It seems this function's performance is going in the wrong direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 18:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665381#M17071</guid>
      <dc:creator>AndySanford</dc:creator>
      <dc:date>2010-09-29T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.ClearGraphics performance problem even worse with v2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665382#M17072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have identified the issue as a problem with Silverlight. However we have a workaround in place, and you should see vastly improved performance (10-20x) in the next release. Sorry for the inconvenience, and thanks for reporting this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For what its worth, Bing would also be similarly affected if you tried to do the same amount of functionality that our graphics does &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 16:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665382#M17072</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-15T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.ClearGraphics performance problem even worse with v2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665383#M17073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just installed and tested with v2.1 (2.1.0.446), and the ClearGraphics() performance is hugely improved over v2.0; thanks!&amp;nbsp; My worst case for ClearGraphics() in 2.0 was about 3.89 seconds; the same action in v2.1 takes only about 0.17 seconds!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, thank you, thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 15:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665383#M17073</guid>
      <dc:creator>AndySanford</dc:creator>
      <dc:date>2011-01-05T15:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer.ClearGraphics performance problem even worse with v2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665384#M17074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you like it! And thank you for reporting it in the first place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have also forwarded the issue to Microsoft, and they are now aware of the problem and looking into resolving this so developers doesn't have to work around this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 21:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphicslayer-cleargraphics-performance-problem/m-p/665384#M17074</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-05T21:58:00Z</dc:date>
    </item>
  </channel>
</rss>

