Together with @alexpejovic, we discovered that Views can be very slow, even to the point where it becomes a limiting factor. For example, in a network with many single-comp cells, the connect is very slow. See also the troubleshooting guide here.
This is because a View always tracks all elements of the Module, even if the user only needs some parts of it (e.g., .nodes). To fix this, we might consider a View to only build its attributes "on demand". For example, connect would only build the .nodes, but .vis() would only build .xyzr.
There might be other solutions, but I think we should consider the speed of Views in the future.
Together with @alexpejovic, we discovered that
Views can be very slow, even to the point where it becomes a limiting factor. For example, in a network with many single-comp cells, theconnectis very slow. See also the troubleshooting guide here.This is because a
Viewalways tracks all elements of theModule, even if the user only needs some parts of it (e.g.,.nodes). To fix this, we might consider aViewto only build its attributes "on demand". For example,connectwould only build the.nodes, but.vis()would only build.xyzr.There might be other solutions, but I think we should consider the speed of
Views in the future.