<?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 JMP 16 automation *much* slower than JMP 15 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-16-automation-much-slower-than-JMP-15/m-p/574622#M78337</link>
    <description>&lt;P&gt;Details:&lt;BR /&gt;I am seeing poor automation performance JMP 16 vs JMP 15.&lt;/P&gt;
&lt;P&gt;Compared to JMP 15 (Tested 15.21)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample C# code at bottom:&lt;/P&gt;
&lt;P&gt;(C# .NetFramework) using the JMP.tbl reference for automation&lt;/P&gt;
&lt;P&gt;Key Line of code: (From C# JMP automation)&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This adds a column of data to the JMP datatable from an array (MyData)&lt;/P&gt;
&lt;P&gt;For JMP 16.2 this line takes 2600 ms for an array of 20000 values&lt;BR /&gt;For JMP 15.21 this takes 18 ms&lt;/P&gt;
&lt;P&gt;A performance hit of 144X slower! (it gets even worse as the arrays get larger!) My software often deals in rows of millions of lines, it basically makes JMP 16 unusable for automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sample C# code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;JMP.Application myJMP = new JMP.Application();
JMP.DataTable jmpDT;
myJMP.Visible = true;
jmpDT = myJMP.NewDataTable(TableName);
string command = "dts= DataTable(\""
+ TableName + "\");";
myJMP.RunCommand(command);
jmpDT.AddRows(20000, 0);
double[] MyData = new double[20000];
jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone else seen this issue, any workarounds to "FIX" JMP 16?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:57:32 GMT</pubDate>
    <dc:creator>ChrisM_X</dc:creator>
    <dc:date>2023-06-10T23:57:32Z</dc:date>
    <item>
      <title>JMP 16 automation *much* slower than JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-16-automation-much-slower-than-JMP-15/m-p/574622#M78337</link>
      <description>&lt;P&gt;Details:&lt;BR /&gt;I am seeing poor automation performance JMP 16 vs JMP 15.&lt;/P&gt;
&lt;P&gt;Compared to JMP 15 (Tested 15.21)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample C# code at bottom:&lt;/P&gt;
&lt;P&gt;(C# .NetFramework) using the JMP.tbl reference for automation&lt;/P&gt;
&lt;P&gt;Key Line of code: (From C# JMP automation)&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This adds a column of data to the JMP datatable from an array (MyData)&lt;/P&gt;
&lt;P&gt;For JMP 16.2 this line takes 2600 ms for an array of 20000 values&lt;BR /&gt;For JMP 15.21 this takes 18 ms&lt;/P&gt;
&lt;P&gt;A performance hit of 144X slower! (it gets even worse as the arrays get larger!) My software often deals in rows of millions of lines, it basically makes JMP 16 unusable for automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sample C# code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;JMP.Application myJMP = new JMP.Application();
JMP.DataTable jmpDT;
myJMP.Visible = true;
jmpDT = myJMP.NewDataTable(TableName);
string command = "dts= DataTable(\""
+ TableName + "\");";
myJMP.RunCommand(command);
jmpDT.AddRows(20000, 0);
double[] MyData = new double[20000];
jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone else seen this issue, any workarounds to "FIX" JMP 16?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:57:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-16-automation-much-slower-than-JMP-15/m-p/574622#M78337</guid>
      <dc:creator>ChrisM_X</dc:creator>
      <dc:date>2023-06-10T23:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 16 automation *much* slower than JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-16-automation-much-slower-than-JMP-15/m-p/575961#M78412</link>
      <description>&lt;P&gt;JMP help ticket tech support solved the performance issue with JMP 16, with the below modification to C# automation code.&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;...........................................................&lt;/P&gt;&lt;P&gt;Please try this test code in JMP 16:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;JMP.Application myJMP = new JMP.Application();// myJMP.EnableInteractiveMode(true);
JMP.DataTable jmpDT;
myJMP.Visible = true;
jmpDT = myJMP.NewDataTable(TableName);
string command = "dts= DataTable("" + TableName + "");";
myJMP.RunCommand(command);
jmpDT.AddRows(20000, 0);
double[] MyData = new double[20000];
myJMP.RunCommand("dts &amp;lt;&amp;lt; Begin Data Update");
jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);
myJMP.RunCommand("dts &amp;lt;&amp;lt; End Data Update");

Notice the addition of :

myJMP.RunCommand("dts &amp;lt;&amp;lt; Begin Data Update");
jmpDT.NewColumn("MyData", JMP.colDataTypeConstants.dtTypeNumeric, 0, 8).SetDataVector(MyData);
myJMP.RunCommand("dts &amp;lt;&amp;lt; End Data Update");&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This will force JMP to bypass updating the table constantly which is causing the slow down.&amp;nbsp; We have a fix in JMP 17.1, but you can use the work around above to avoid the slow performance until JMP 17.1 is released.&lt;BR /&gt;&lt;BR /&gt;Please let me know if you need additional assistance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave Matthews&lt;BR /&gt;JMP Technical Support&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 19:17:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-16-automation-much-slower-than-JMP-15/m-p/575961#M78412</guid>
      <dc:creator>ChrisM_X</dc:creator>
      <dc:date>2022-12-01T19:17:10Z</dc:date>
    </item>
  </channel>
</rss>

