Skip to content

Large Stage Variables Cause Slowness #106

@matthew-schiller

Description

@matthew-schiller

Describe the bug
Populating stage variables with a large amount of data is causing the entire execution to slow down, even if the stage variable is not being interacted with. The provided example builds quickly to the add_stage_data node, but any node built after that slows down considerably.

{
    "version": "1.17",
    "alias": "stage_slowness",
    "color": "#991c24",
    "mute": false,
    "solo": false,
    "meta_data": {
        "positions": {
            "/root": [
                193.0,
                -63.0
            ]
        },
        "collapse": {
            "/root": false,
            "/root/b": false,
            "/root/c": true
        }
    },
    "nodes": {
        "/": {
            "code": [
                ""
            ]
        },
        "/root": {
            "start_point": true,
            "child_order": [
                "a",
                "b",
                "add_stage_data",
                "c",
                "d",
                "e",
                "f"
            ]
        },
        "/root/a": {},
        "/root/add_stage_data": {
            "code": [
                "STAGE.data_test = [x for x in range(1000000)]",
                ""
            ]
        },
        "/root/b": {},
        "/root/c": {},
        "/root/d": {},
        "/root/e": {},
        "/root/f": {}
    }
}

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • DCC [e.g. Maya, Nuke]
  • Version [e.g. API v0.7.3]

nxt maya
graph v1.17
api v0.14.0
editor v3.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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