gajus / table

Formats data into a string table.
Other
894 stars 77 forks source link

Performance issue with large tables #223

Closed m-allanson closed 4 months ago

m-allanson commented 6 months ago

table is very slow for large tables.

On a recent Apple machine, it takes over 12 seconds to generate a 3256 row table.

Steps to reproduce

Use this repo: https://github.com/m-allanson/table-profile

Further notes

If you load a CPU Profile into SpeedScope, you can see that findOriginalRowIndex accounts for 94% of the running time:

CleanShot 2024-02-25 at 11 46 17@2x

m-allanson commented 4 months ago

Closing as the fix in #224 was merged and released in table@6.8.2. Thanks @nam-hle!