mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.34k stars 110 forks source link

Element.table rendering time is non-linear in the size of the table data - problems with thousands of rows #359

Open Andrew-Clow opened 3 months ago

Andrew-Clow commented 3 months ago

In this Ellie, you can see a significant difference in render time on lists with about 10 000 integers.

https://ellie-app.com/qP94mX6dBWXa1

(My real data is a similar length, but much more complex, and the number of seconds taken to render grows non-linearly with the length of the list of items I feed it. I need to give it thousands of rows, but in practice can only show hundreds unless I use Html.table instead.)

Items | Render time in Ellie, recompiling each time 10000 | 3 seconds 20000 | 10 seconds 30000 | 28 seconds

(Html.table renders 30 000 rows almost instantly in Ellie.)

Expected behavior Reasonable render times for large numbers of rows.

Versions