<?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: Multiple custom visual performance in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/984577#M22764</link>
    <description>&lt;P&gt;Thanks so much! I apologize for the delayed response. I was able to use your suggestions to significantly improve my custom visual. Your in-depth guidelines really made a significant difference. I think updating the SDK and finding some redundancies in the code did the trick!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 19:43:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-20T19:43:52Z</dc:date>
    <item>
      <title>Multiple custom visual performance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/946110#M22465</link>
      <description>&lt;P&gt;I have begun including multiple custom visuals in my report, and the report is taking significant performance hits. Power BI crashes frequently and the pages are taking forever to load/render/interact. I have many more custom visuals that I intend to create and include in my report in the future. I was wondering if anyone has found any ways to alleviate this or work around performance hits with Power BI custom visuals:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there something other than code refinement/optimization to make the custom visuals integrate more seamlessly in Power BI reports?&lt;/LI&gt;&lt;LI&gt;Methods/strategies to alleviate Power BI processing with the inclusion of custom visuals?&lt;/LI&gt;&lt;LI&gt;Distillation of multiple visuals into one custom visual?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 24 Feb 2020 23:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/946110#M22465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T23:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple custom visual performance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/946226#M22466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There are a couple of major possibilities here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(Assuming your custom visual code is as optimal as possible) are you using the latest SDK? There are some &lt;A href="https://community.powerbi.com/t5/Custom-Visuals-Development/Memory-leaks-in-Power-BI-custom-visuals/td-p/248749" target="_self"&gt;documented memory leak issues with versions earlier than 2.5&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/performance-tips/" target="_self"&gt;Have you followed the performance guidelines for your visuals&lt;/A&gt;? A number of decisions such as using canvas vs. DOM for visuals (particularly if you're using a lot of SVG elements). For this reason, there's very few core visuals that allow more than 10,000 data points (most are capped under 3,500).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you've ruled these out then it will be a case of &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/performance-tips/#use-user-timing-api" target="_self"&gt;profiling parts of your code&lt;/A&gt; to determine if they are perhaps not performing as well as they might be able to. I have found this very useful to understand how many times a function is being called, as well as how long it may take to execute and have previously made successful optimisations to the way I map data from the &lt;FONT face="courier new,courier"&gt;dataView&lt;/FONT&gt; into my view model using this method.&lt;/P&gt;
&lt;P&gt;You can also use the &lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-performance-analyzer" target="_self"&gt;performance analyzer within Power BI Desktop&lt;/A&gt; to rule out something like the incoming DAX query being the problem. If the DAX query takes a long time then this is nothing to do with the visual as their code doesn't execute until the main Power BI window supplies it with the &lt;FONT face="courier new,courier"&gt;dataView&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;Another technique is checking &lt;FONT face="courier new,courier"&gt;options.type&lt;/FONT&gt; in the &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; method. You don't need to map your view model data every time the visual updates (e.g. if resizing), only when new data is supplied. &lt;A href="https://github.com/dm-p/powerbi-visuals-smlc/blob/master/src/visual.ts#L94" target="_self"&gt;Here's an example of how I handle this in one of my visuals&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you've ruled out the above, it's probably worth having a further look at your visual code. If you're able to share a repository or similar location then it might be possible to take a look and see if there's anything obvious.&lt;/P&gt;
&lt;P&gt;Anyway, I hope this gives you some ideas for your investigations.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 02:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/946226#M22466</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-02-25T02:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple custom visual performance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/984577#M22764</link>
      <description>&lt;P&gt;Thanks so much! I apologize for the delayed response. I was able to use your suggestions to significantly improve my custom visual. Your in-depth guidelines really made a significant difference. I think updating the SDK and finding some redundancies in the code did the trick!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 19:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/984577#M22764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-20T19:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple custom visual performance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/985421#M22770</link>
      <description>You're very welcome! Glad the advice worked for you and great to hear you've managed to improve performance in your visual &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sun, 22 Mar 2020 00:25:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multiple-custom-visual-performance/m-p/985421#M22770</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-03-22T00:25:14Z</dc:date>
    </item>
  </channel>
</rss>

