Skip to main content

3. Grasshopper Optimization Tips

Script performance is critical for a smooth user experience on InForm. Slow computations frustrate users and increase cloud compute costs.

Measure performance

  • Use the Bottleneck Navigator from the Metahopper grasshopper plugin to find the components with longest runtimes.

Avoid Boolean Operations

  • Boolean operations like Solid Union, Solid Intersection or Solid Difference are slow, try and build the logic to work without booleans.

Use Meshes Instead of Breps

  • Meshes are faster than breps. A mesh will always be more performant than a brep.
    • For example, use Mesh Sphere or Mesh Volume instead of a Sphere or Volume component.
    • Do not plug a Brep component in a Mesh. Use the Mesh Brep component with the proper settings.
  • The Mesh Brep component doesn't do a good job at meshing pipes. Use the Pipe Polyline from the Inform plugin instead.

Mathematical Operations Over Intersections

  • The Intersection tab is sorted from fast to slow. Try to use Mathematical operations.

Grasshopper intersection performance