Skip to content

Can {@htm 'svgRaw'} affect performance? #15639

Answered by fedorovvvv
fedorovvvv asked this question in Q&A
Discussion options

You must be logged in to vote

I rechecked my results and concluded that {@html } slows down html rendering

Here are my results for 10000 svg elements:
<svg>: [500, 700, 600]ms avg: 600
{@html '<svg>'}: [1500, 1800, 1700]ms avg: 1666

Accordingly, @html does this work ~177% slower
And the speed decreases exponentially depending on the number of elements

When running Record at Perfomance in DevTools, this is particularly noticeable

REPL: link

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dominikg
Comment options

@fedorovvvv
Comment options

Answer selected by fedorovvvv
@dominikg
Comment options

@fedorovvvv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants