powerhouse-inc / connect

https://document-model-electron.vercel.app
3 stars 2 forks source link

Improve FolderView performance #357

Open acaldas opened 1 month ago

acaldas commented 1 month ago

A folder with many files is causing the UI to become unresponsive when it rerenders

We should rely heavily in memorization to avoid rerendering all the file items.

Each FileItem has some costly methods being called during render time:

If needed, we could also add virtualization to only render the visible section of the file list.

DOD

Image

Image

CallmeT-ty commented 3 weeks ago

T will actually do the test and confirm

CallmeT-ty commented 3 weeks ago

I can create a 100 files, but not 1000 since i'm only able to duplicate 1 file at a time...