Skip to content

Loading data into DataArray component blocks UI #79

Open
@nyoung697

Description

@nyoung697

We are noticing that our UI freezes when loading larger datasets into VTK. Here is a contrived example. The data being loaded here is smaller than what will typically be loaded.

In production, on my M1 Max, this dataset blocks for ~130ms. One of our larger datasets in our app was blocking for >900ms.

If I slow my CPU down by 6x, this smaller dataset will block the main thread for ~1.2s.

https://test-vtk2.vercel.app/
https://github.com/nyoung697/test-vtk2/blob/main/src/App.js

Is there a better way to load larger datasets, without blocking the main thread?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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