alephium / alephium-frontend

A monorepo containing all things frontend on Alephium.
Other
14 stars 13 forks source link

Optimize FlatLists #19

Open mvaivre opened 1 year ago

mvaivre commented 1 year ago

We're seeing the following warning: VirtualizedList: You have a large list that is slow to update.... We're already memoizing the flat list items, however more can probably be done. We're using such lists across the whole app: improving this will probably have a great impact on smoothness & loading time.

nop33 commented 1 year ago

I'll take this.

nop33 commented 1 year ago

The only remaining places where we list things are:

Imo, none of this can grow to a size that will impact performance. I tried adding 100 contacts and I didn't get any warnings. So, I would leave this task for after the initial release. It requires quite a bit of work and I'd rather focus on other more pressing issues.

@mvaivre WDYT?

nop33 commented 8 months ago

Let's have a look at https://github.com/Shopify/flash-list