Ways to improve performance? #431
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. |
Beta Was this translation helpful? Give feedback.
-
This is interesting. I'll have to look into this |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions