<?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: Optimize Memory working with many data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/654337#M84358</link>
    <description>&lt;P&gt;Thanks Craige that's really good advice , I had no clue pre allocating size would help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty sure it's not about tables I forgot to close because I had a step in my script where my tables where visibles.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 08:54:55 GMT</pubDate>
    <dc:creator>johanna_younous</dc:creator>
    <dc:date>2023-06-30T08:54:55Z</dc:date>
    <item>
      <title>Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/652695#M84249</link>
      <description>&lt;P&gt;Hello there !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm iterating many analyses in a loop - like millions -&amp;nbsp; and I need to store the results. Those results are are text values and numeric values. So far I stored the results in a data table but as the size of the table increase so does the memory, and the speed of the analyses tend to decrease.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to save time and memory.&lt;/P&gt;&lt;P&gt;The table is already in private ( as sugested in an other topic of the forum) ; it makes it better but it's not sufficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to save my text variable in a list and my numeric ones in a vector&amp;nbsp; (it is pretty efficient for R). Maybe I did it wrong but it seems here to increase the time of the loop.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any one have a good idea?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Jmp 14 but I can have access to JMP 16.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 19:39:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/652695#M84249</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2023-06-26T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/652754#M84252</link>
      <description>&lt;P&gt;Which specific platforms are you using? JMP 16 and 17 made improvements to the speed of many platforms.&lt;/P&gt;
&lt;P&gt;Also, you can use the HP Time() function to test iterations. Some good discussions are &lt;A href="https://community.jmp.com/t5/Discussions/Is-there-a-faster-way-to-loop/m-p/612450" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://community.jmp.com/t5/Discussions/Efficient-row-state-coding/m-p/38866" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 21:17:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/652754#M84252</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-06-26T21:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/653078#M84269</link>
      <description>&lt;P&gt;Adding to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;'s reply, you can also use the profiling feature in the JMP &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/debug-or-profile-scripts.shtml#" target="_self"&gt;Debugger&lt;/A&gt; to determine where the bottlenecks are.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:21:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/653078#M84269</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-06-27T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/653134#M84274</link>
      <description>&lt;P&gt;If you are running out of memory, watch out for private data tables that you forgot to close. (try making them invisible rather than private to make sure you've closed them. Invisible still shows up in the home window.)&lt;/P&gt;
&lt;P&gt;If JMP runs slower and slower&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;if you have an old-school desktop with a disk light, keep an eye on it to see if stays on a lot. You might be creating matrices that are really big. J(10000) makes a 2D (not 1D) matrix.&lt;/LI&gt;
&lt;LI&gt;if you are building a string or matrix by concatenating to the end, that gets really slow as the string or matrix gets larger. Pre-allocate the matrix to the right size, or use a list of string parts followed by concatitems() when done.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Do use the JSL debugger's profiler as &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp; suggests.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wrench, Clock, Go" style="width: 737px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54193i2055513FE5EA9600/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Wrench, Clock, Go" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Wrench, Clock, Go&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you get lucky, there will be an obvious hotspot that might match something above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:08:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/653134#M84274</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-06-27T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/654327#M84357</link>
      <description>&lt;P&gt;I use the Kmean plateform ( and open and close reports along the process) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm use to use tick second () , I didn't know about Hp time() . It seems to be similar ?&lt;/P&gt;&lt;P&gt;I'll check about the discussions you spotted thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 07:42:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/654327#M84357</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2023-06-30T07:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Memory working with many data</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/654337#M84358</link>
      <description>&lt;P&gt;Thanks Craige that's really good advice , I had no clue pre allocating size would help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty sure it's not about tables I forgot to close because I had a step in my script where my tables where visibles.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 08:54:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Memory-working-with-many-data/m-p/654337#M84358</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2023-06-30T08:54:55Z</dc:date>
    </item>
  </channel>
</rss>

