Skip to content

[BUG] High CPU usage when typing in text field and plotly graphs on screen #2297

@astrowonk

Description

@astrowonk

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                              2.6.2
dash-bootstrap-components         1.2.1
dash-bootstrap-templates          1.0.4
dash-core-components              2.0.0
dash-dataframe-table              0.1.3
dash-extensions                   0.1.5
dash-html-components              2.0.0
dash-renderer                     1.9.0
dash-table                        5.0.0
  • if frontend related, tell us your Browser, Version and OS

    • OS: Mac
    • Browser Safari

Describe the bug

High cpu usage when typing characters in a text field if there are plotly graphs on screen.

Expected behavior

Minimal CPU usage

Screenshots

** Simple example app

https://github.com/astrowonk/streamlit_lag_example/blob/main/dash_example.py

  • Discussion

I tried to get some guidance via this post on the community forum but did not get any feedback.

No callback is watching the TextArea. I can't think of any reason CPU usage should be high here. On older Macs/computers this creates a lot of input lag just typing.

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