Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster csv rendering #130

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Faster csv rendering #130

merged 2 commits into from
Mar 4, 2024

Conversation

bloodearnest
Copy link
Member

@bloodearnest bloodearnest commented Mar 4, 2024

  • Render csv using plain html templates
  • Make csv table headers sticky

Using components, a 3k line csv took ~6s to render. After this change, about 0.25s

The slippers table component is very slow, not designed for large data.
It invokes a template for every td!

This just renders it in html, using similar styles, but is more compact.
Copy link
Contributor

@evansd evansd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good but could do with a slightly more descriptive PR title and some mention in the PR description of the performance difference (as described in the thread).

@bloodearnest bloodearnest changed the title fast csv Faster csv rendering Mar 4, 2024
@bloodearnest bloodearnest merged commit 3dd31fc into main Mar 4, 2024
8 checks passed
@bloodearnest bloodearnest deleted the fast-csv branch March 4, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants