Skip to content

views of large systems take a long time #789

@michaeldeistler

Description

@michaeldeistler

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions