View Full Version : Speed comparison: C++ versus Python, aka *.p vs *.pyc, in housekeeping tasks?

10-19-2015, 06:04 PM
I am entirely cognizant that this will vary widely and wildly, but how much of a speed increase might one expect in Layout of a plugin that is doing mostly NON mathematical (i.e. not a shader or render-y plugin) , "housekeeping" type tasks, like creating nulls, parenting, etc, in C++ versus Python?

I guess perhaps another way of putting this is how much overhead does Python impose on the software?

10-19-2015, 09:19 PM
Python interacts with the sdk via a wrapper. So it's at least one level removed from LightWave. Doubt anyone has actual metrics but a C plugin should always be faster. For small tasks the speed difference is probably negligible.

10-19-2015, 09:45 PM
I was just using RR_TranslateAverage, great tool, but there's a bit of a pause when you are adjusting a couple hundred objects.

10-19-2015, 10:16 PM
Layout can be slow editing a lot of objects at once in general.

10-19-2015, 10:34 PM
It's all bookkeeping stuff: once everything's linked up, it's reasonable.

10-19-2015, 11:37 PM
for speed it's similar to this :D :D:

https://video-cdg2-1.xx.fbcdn.net/hvideo-xta1/v/t42.1790-2/11062975_673743392751325_191930980_n.mp4?efg=eyJyb HIiOjQ2NiwicmxhIjo1MTIsInZlbmNvZGVfdGFnIjoicmVzXzQ yNl9jcmZfMjNfbWFpbl8zLjBfc2QifQ%3D%3D&rl=466&vabr=259&oh=dc7dcd7ed29d342df541ff02c049b5eb&oe=5625FDDB

10-20-2015, 12:10 AM