You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I want to say I’ve really enjoyed using this library, so I decided to explore its performance under load.
To do this, I ran a benchmark comparing a few straightforward optimization strategies. Specifically, I looked at performance differences between smaller components with just a few elements versus a larger component containing 1000 elements.
One observation stood out: collapsing components into a single Raw() significantly improved performance, showing gains over 300x for the larger component.
While I don’t have specific recommendations at the moment, I thought it might be interesting to share these findings with you.
@thevtm thanks for that! Yeah, I would expect just pushing one big string literal with raw being faster. That's okay.
I would actually be interested in finding out how long some large documents with, say, a few thousand elements and attributes (built deterministically) take to render, and then outputting the result of that benchmark as part of the CI pipeline, to catch whether refactors make anything worse. If you'd be interested in contributing, let me know! 😊
Firstly, I want to say I’ve really enjoyed using this library, so I decided to explore its performance under load.
To do this, I ran a benchmark comparing a few straightforward optimization strategies. Specifically, I looked at performance differences between smaller components with just a few elements versus a larger component containing 1000 elements.
One observation stood out: collapsing components into a single
Raw()
significantly improved performance, showing gains over 300x for the larger component.While I don’t have specific recommendations at the moment, I thought it might be interesting to share these findings with you.
Code
The text was updated successfully, but these errors were encountered: