I’m currently learning how to use rhinoscriptsyntax and rhinocommon in Python.
Deconstruct Point Study.gh (21.6 KB)
I made these simple python scripts which work same as Deconstruct Point Component of GH. It returns coordinates of points. I attached the file.
I understand that rhinocommon is faster than rhinoscriptsyntax and the script which is using proper data structure is faster than which is not.
But what I’m curious about is that why rhinocommon, rhinoscriptsyntax script are much slower than Default Component of Gh, while they’re doing same thing?
Following is the fastest code I made using rhinocommon with proper data structure. P is a list of points.
x =  y =  z =  for i in P: x.append(i.X) y.append(i.Y) z.append(i.Z) X = x Y = y Z = z
Should I look at it in lower level how the function is operating?