Skip to content

perf(ssr): improve ssrRenderSlot performance#6078

Merged
yyx990803 merged 1 commit intovuejs:mainfrom
hkk12369:hkk12369-iscomment
Jun 13, 2022
Merged

perf(ssr): improve ssrRenderSlot performance#6078
yyx990803 merged 1 commit intovuejs:mainfrom
hkk12369:hkk12369-iscomment

Conversation

@hkk12369
Copy link
Copy Markdown
Contributor

@hkk12369 hkk12369 commented Jun 8, 2022

This PR replaces isComment function in ssrRenderSlot with a faster version (upto 10x faster, see: https://jsbench.me/o5l45knpk2/1)

Old isComment: 8029029.23 ops/s (89.1% slower)
New isComment: 73631038.71 ops/s

Replaces isComment function with a faster version (upto 10x faster, see: https://jsbench.me/o5l45knpk2/1)
@yyx990803 yyx990803 merged commit 25f7a16 into vuejs:main Jun 13, 2022
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.

2 participants