Skip to content

Plotly react performance plummets with large number of traces #3227

Closed
@rhamner

Description

@rhamner

I found one conversation about this in issue 1535 and it was referenced as the achilles heell in plotly in the comments but that was over a year ago so I wanted to include a new example to see if anything can be done.

A contrived, reproducing example is here:

example

On my machine in chrome and plotly 1.42.4, I'm getting the following results for rendering 10k total points:

  • 1 trace: ~80 ms/call
  • 10 traces: ~90 ms/call
  • 100 traces: ~140 ms/call
  • 1000 traces: ~650 ms/call

The real-life example that made me notice this is 15k points going from <200 ms/call to ~15 seconds/call over the range of trace numbers. This is really impactful in our use case. We are already trying to minimize the total number of traces so I'm not sure if there's anything we can do to improve this on our end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions