<?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 Memory leaks in custom visuals in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/491502#M15057</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is any memory leaks occuring in the update method. As far as I know, update method is recalled each time an event occured (filter for instance).&lt;/P&gt;&lt;P&gt;So normally, all the variables and dom existing on the update are cleaned and recalled.&lt;/P&gt;&lt;P&gt;I developed a custom visual that takes nearly 440 Mb of RAM,&amp;nbsp;after several manipulations (filtering on dataview mainly) the Ram used keeps rising up ...&lt;/P&gt;&lt;P&gt;is it normal ? Is there any leak in custom visuals ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2018 12:53:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-16T12:53:33Z</dc:date>
    <item>
      <title>Memory leaks in custom visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/491502#M15057</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is any memory leaks occuring in the update method. As far as I know, update method is recalled each time an event occured (filter for instance).&lt;/P&gt;&lt;P&gt;So normally, all the variables and dom existing on the update are cleaned and recalled.&lt;/P&gt;&lt;P&gt;I developed a custom visual that takes nearly 440 Mb of RAM,&amp;nbsp;after several manipulations (filtering on dataview mainly) the Ram used keeps rising up ...&lt;/P&gt;&lt;P&gt;is it normal ? Is there any leak in custom visuals ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 12:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/491502#M15057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leaks in custom visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/492292#M15077</link>
      <description>&lt;P&gt;There's a known issue with memory consumption. New API will resolve this issue (please expect a new release soon).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Important to note that custom visuals should not remove DOM for each&amp;nbsp;&lt;STRONG&gt;update&lt;/STRONG&gt; call since it produces memory leaks.&lt;/P&gt;
&lt;P&gt;To void removing of DOM you should use D3-enter-update-exit flow or use another library that keeps DOM during modifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 06:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/492292#M15077</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-17T06:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leaks in custom visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/492336#M15079</link>
      <description>&lt;P&gt;Okey I see, and will the new API solve this problematic of DOM causing memory leaks ? Because I'm using a library called Leaflet, its difficult to keep the same DOMs. since its all about maps.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/492336#M15079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T07:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leaks in custom visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/493763#M15121</link>
      <description>&lt;P&gt;Yes, it will reduce memory consumption but you should also optimize your code in order not to remove DOM for each update call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 08:00:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Memory-leaks-in-custom-visuals/m-p/493763#M15121</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-20T08:00:24Z</dc:date>
    </item>
  </channel>
</rss>

