algorithmic modeling for Rhino
So I'm working on a few scripts at the moment; each of them handling large sets of data.
They haven't bogged my [weak] machine down yet, but I noticed that when performing some of the same functions available through standard components, my scripts take significantly longer (e.g. 1.6s to find surface normals compared to 4ms with standard components.)
I know I could just use the standard components, but part of my goal is to clean-up the spaghetti for less-experienced users. OK, I could do this with clusters, but I like the scripting experience too.
Can anyone shed some light on script optimization techniques? Are there any resources available, or at least a handful of best practices?
Matt
Tags:
Hi Matthew,
if this is a VB/C# script component, note that the first time it runs it will have to compile the code. This will take time. Press F5 a few times to see the real running time of your component.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Ángel,
They are vb.net scripting components. I'm not compiling .gha assemblies in Visual Studio yet...
David,
I've checked the real running time of the component. It is still significantly longer than the standard grasshopper components.
Can you upload the gh file?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by