astro-remote icon indicating copy to clipboard operation
astro-remote copied to clipboard

Build time grows with every render

Open codeserk opened this issue 1 year ago • 9 comments

Hello, I'm using this lib to render MD/MDX from remote sources and it works quite well. However, I noticed that the build time grows with every render. I have a page that uses the Markdown component a few time and it goes crazy in dev mode:

The first render is fast-ish 100ms but the time keeps growing with every refresh of the page 300ms - 600ms - 1200ms at some point it's just too slow and the only solution is to restart the dev server. This behavior also happens when the app is built and I start the server (npm run start).

I'm opening the issue in case this rings a bell and/or you know the possible cause somehow, I'll try to debug it better and come up with a PR if I find the cause

Thanks !

codeserk avatar Jul 01 '24 12:07 codeserk