GHPython Some Bottlenecks (Bugs?) - Grasshopper2024-03-28T20:06:57Zhttps://www.grasshopper3d.com/forum/topics/ghpython-some-bottlenecks-bugs?commentId=2985220%3AComment%3A1814144&x=1&feed=yes&xn_auth=noThe Grasshopper SDK is also a…tag:www.grasshopper3d.com,2017-09-16:2985220:Comment:18141442017-09-16T09:13:11.499ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>The Grasshopper SDK is also <a href="http://developer.rhino3d.com/wip/api/grasshopper" target="_blank">available online</a> by the way (I like these more somehow, RhinoCommon <a rel="nofollow" href="http://developer.rhino3d.com/api/RhinoCommonWin" target="_blank">is there as well</a>)</p>
<p>The Grasshopper SDK is also <a href="http://developer.rhino3d.com/wip/api/grasshopper" target="_blank">available online</a> by the way (I like these more somehow, RhinoCommon <a rel="nofollow" href="http://developer.rhino3d.com/api/RhinoCommonWin" target="_blank">is there as well</a>)</p> Just to provide help for othe…tag:www.grasshopper3d.com,2017-09-15:2985220:Comment:18137342017-09-15T15:21:51.409ZEduardohttps://www.grasshopper3d.com/profile/Eduardo452
<p>Just to provide help for others, here is a useful thread on creating custom Grasshopper.Kernel.Types.<br/><a href="http://www.grasshopper3d.com/forum/topics/custom-data-type-gh-geometricgoo-or-gh-goo" target="_blank">http://www.grasshopper3d.com/forum/topics/custom-data-type-gh-geometricgoo-or-gh-goo</a><br/><br/>Also, Grasshopper SDK (to get it open Grasshopper > Help>Download SDK) has been a wonderful resource.</p>
<p>Just to provide help for others, here is a useful thread on creating custom Grasshopper.Kernel.Types.<br/><a href="http://www.grasshopper3d.com/forum/topics/custom-data-type-gh-geometricgoo-or-gh-goo" target="_blank">http://www.grasshopper3d.com/forum/topics/custom-data-type-gh-geometricgoo-or-gh-goo</a><br/><br/>Also, Grasshopper SDK (to get it open Grasshopper > Help>Download SDK) has been a wonderful resource.</p> Thanks Giulio, i'll get my he…tag:www.grasshopper3d.com,2017-09-12:2985220:Comment:18123082017-09-12T16:35:46.960ZEduardohttps://www.grasshopper3d.com/profile/Eduardo452
<p>Thanks Giulio, i'll get my head around this!</p>
<p>Thanks Giulio, i'll get my head around this!</p> Yes, as you can see if you op…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18108192017-09-08T15:14:08.238ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Yes, as you can see if you open the examples above: sometimes it takes more time for Grasshopper to go through the long list of types it knows about, and figure out which one you gave it, and create the corresponding <span><em>Grasshopper.Kernel.Types</em> type, than to do the calculation itself.</span></p>
<p><span>In those cases, just go through the "small pain" of creating the correct the <em>Grasshopper.Kernel.Types</em> type yourself. This is valid both in scripting and in compiled…</span></p>
<p>Yes, as you can see if you open the examples above: sometimes it takes more time for Grasshopper to go through the long list of types it knows about, and figure out which one you gave it, and create the corresponding <span><em>Grasshopper.Kernel.Types</em> type, than to do the calculation itself.</span></p>
<p><span>In those cases, just go through the "small pain" of creating the correct the <em>Grasshopper.Kernel.Types</em> type yourself. This is valid both in scripting and in compiled GHAs.</span></p> I don't really compile much,…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18107242017-09-08T12:48:50.860ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>I don't really compile much, so David or Giulio would have to chime in here. That said, wrapping output data in Grasshopper.Kernel.Types certainly <a href="http://www.grasshopper3d.com/forum/topics/how-to-input-and-use-point-in-ghpython-directly?commentId=2985220%3AComment%3A1718264" target="_blank">speeds things up on the GHPython side of things</a>.</p>
<p>I don't really compile much, so David or Giulio would have to chime in here. That said, wrapping output data in Grasshopper.Kernel.Types certainly <a href="http://www.grasshopper3d.com/forum/topics/how-to-input-and-use-point-in-ghpython-directly?commentId=2985220%3AComment%3A1718264" target="_blank">speeds things up on the GHPython side of things</a>.</p> Thanks for the hint Anders.
W…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18106682017-09-08T11:33:30.062ZEduardohttps://www.grasshopper3d.com/profile/Eduardo452
<p>Thanks for the hint Anders.</p>
<p><br></br>What I was asking about is a little different.<br></br>I was interested in the reasons of the costs of outputting data.<br></br>If explicit casting is more expensive than letting GH do that.</p>
<p><br></br>In my script, the calculation occurs anyway.<br></br>But, when the value are output with the DA.SetData method, it takes 10s.<br></br>If the calculation occurs, but no outputs are sent to cast to the GH component, it takes 10ms, which is 1000 times…</p>
<p>Thanks for the hint Anders.</p>
<p><br/>What I was asking about is a little different.<br/>I was interested in the reasons of the costs of outputting data.<br/>If explicit casting is more expensive than letting GH do that.</p>
<p><br/>In my script, the calculation occurs anyway.<br/>But, when the value are output with the DA.SetData method, it takes 10s.<br/>If the calculation occurs, but no outputs are sent to cast to the GH component, it takes 10ms, which is 1000 times slower.<br/><br/><br/><br/><br/></p> Giulio elaborates on the perf…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18106652017-09-08T10:50:41.013ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Giulio elaborates on the performance of compiled vs. scripting C# components <a href="http://www.grasshopper3d.com/forum/topics/how-to-input-and-use-point-in-ghpython-directly?commentId=2985220%3AComment%3A1717905" target="_blank">here</a>.</p>
<p>Giulio elaborates on the performance of compiled vs. scripting C# components <a href="http://www.grasshopper3d.com/forum/topics/how-to-input-and-use-point-in-ghpython-directly?commentId=2985220%3AComment%3A1717905" target="_blank">here</a>.</p> Guys, this a very interesting…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18106622017-09-08T10:39:48.787ZEduardohttps://www.grasshopper3d.com/profile/Eduardo452
<p>Guys, this a very interesting discussion, and I blame myself for getting here just now.<br/><br/>My question is, how all of this reflects to a .gha component?<br/>Lastly, I have been dealing with a big amount of output elements from a custom made component, in c#.</p>
<p><br/>Surprisingly, the calculation itself is in the order of milliseconds.<br/>Otherwise, when outputting results the cost raises to the order of set of ten seconds.<br/><br/></p>
<p>Has anybody explored that es well?</p>
<p>Guys, this a very interesting discussion, and I blame myself for getting here just now.<br/><br/>My question is, how all of this reflects to a .gha component?<br/>Lastly, I have been dealing with a big amount of output elements from a custom made component, in c#.</p>
<p><br/>Surprisingly, the calculation itself is in the order of milliseconds.<br/>Otherwise, when outputting results the cost raises to the order of set of ten seconds.<br/><br/></p>
<p>Has anybody explored that es well?</p> Good news! The library is now…tag:www.grasshopper3d.com,2016-07-14:2985220:Comment:15662252016-07-14T16:22:55.587ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Good news! The library is now rewritten in Rhino WIP. <a href="http://discourse.mcneel.com/t/new-version-of-ghpythonlib-components/34619" target="_blank">http://discourse.mcneel.com/t/new-version-of-ghpythonlib-components/34619</a></p>
<p>Good news! The library is now rewritten in Rhino WIP. <a href="http://discourse.mcneel.com/t/new-version-of-ghpythonlib-components/34619" target="_blank">http://discourse.mcneel.com/t/new-version-of-ghpythonlib-components/34619</a></p> LOLtag:www.grasshopper3d.com,2016-05-20:2985220:Comment:15340372016-05-20T13:57:24.191ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>LOL</p>
<p>LOL</p>