nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.26k stars 233 forks source link

Mesh Viewer node #4492

Open Durman opened 2 years ago

Durman commented 2 years ago

Problem statement

In case when number of objects generated by the node is changed the node remove unused ones. It seems it's quite expensive. The problem can be in the implementation itself. If no then probably there is no need to hurry to remove unused objects immediately for sake of the performance.

image

zeffii commented 2 years ago

objects could be unlinked when they are no longer updated (should also not be visible anymore), and only remove unlinked objects upon file save. (untested.. maybe that doesn't make much difference to the overhead created by name-collision checking)

zeffii commented 2 years ago

if that fails.. reluctantly a simple 'hide' works. I used this in early prototypes. It just looks weird.

zeffii commented 2 years ago

i'm surprised that the Typing is taking up that chunk of time.

Durman commented 2 years ago

I think this is because of singledispatch decorator from functools module.