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
I noticed our API response times increased significantly when using the og-image module.
On our production instance the difference goes from around ~40ms avg to ~110ms avg depending on whether the module is on or off.
I feel it's difficult to share a proper reproduction, but the perf difference forces us to disable the module entirely
The text was updated successfully, but these errors were encountered:
So I investigated further and attached flamegraphs below. It seems like https://github.com/harlan-zw/nuxt-schema-org is also affected by this. With both of them disabled everything runs as expected.
I ran a flamegraph perf test of the node server and those are the results for with the 2 modules:
Flamegraph download: with-og-schema.cpuprofile
I did an initial investigation and couldn't see anything wrong within the module code. This seems to be related to useRuntimeConfig() not using the cached result between calls, an upstream issue with Nitro.
Could you confirm the Nitro and OG Image versions you're using if it's still an issue for you?
I noticed our API response times increased significantly when using the og-image module.
On our production instance the difference goes from around ~40ms avg to ~110ms avg depending on whether the module is on or off.
I feel it's difficult to share a proper reproduction, but the perf difference forces us to disable the module entirely
The text was updated successfully, but these errors were encountered: