Ways to improve performance? #431
Unanswered
GavanWilhite
asked this question in
Q&A
Replies: 4 comments
|
Can it be related to the emojis? FWIW .ttf font with only necessary charsets (e.g. Latin) and inlined emoji images (if they are static) will make it a bit faster. |
0 replies
|
This is interesting. I'll have to look into this |
0 replies
|
You can analyze what % of time was spent on fetching fonts and images. And then, in general smaller and simpler images (fewer pixels) will be much faster. |
0 replies
|
Can I do this if I'm using ImageResponse with Vercel? I think it happens
behind the scenes.
…On Mon, Apr 17, 2023 at 3:53 PM Shu Ding ***@***.***> wrote:
You can analyze what % of time was spent on fetching fonts and images. And
then, in general smaller and simpler images (fewer pixels) will be much
faster.
—
Reply to this email directly, view it on GitHub
<#431 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAP5B72CQR3YJRTJBM56DNLXBXCVDANCNFSM6AAAAAAV7GFKT4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I can't seem to get faster performance than about 1.5 seconds locally and 2.5 seconds deployed to vercel.
It's just some basic text from a custom font, and a few emoji.
All user code including font loading takes 15ms cold and less than 1 hot, so I'm pretty sure it must be rendering or something else.
Thoughts?
All reactions