dwyl / nextra-demo

โญ๏ธ A comprehensive demo of using nextra for a documentation site with Auth (private pages), Search and Analytics!
https://nextra-demo-seven.vercel.app/
GNU General Public License v2.0
3 stars 1 forks source link

Slooooooooowwwwwww ... ๐ŸŒ #5

Open nelsonic opened 3 months ago

nelsonic commented 3 months ago

Getting multi-second compile and serve times for each page reload where the whole project is recompiled after changing a character in a file ...

internal:dev:  โ—‹ Compiling / ...
internal:dev:  โœ“ Compiled / in 7.2s (3782 modules)
internal:dev:  GET /public 404 in 3733ms

Seriously? WTF?! ๐Ÿคทโ€โ™‚๏ธ 3+ seconds to serve me a 404 page ...

image
nelsonic commented 3 months ago
public:dev:  โœ“ Starting...
public:dev:    automatically enabled Fast Refresh for 3 custom loaders
private:dev:    automatically enabled Fast Refresh for 3 custom loaders
internal:dev:    automatically enabled Fast Refresh for 3 custom loaders
public:dev:  โœ“ Ready in 1780ms
private:dev:  โœ“ Ready in 1907ms
internal:dev:  โœ“ Ready in 1952ms
internal:dev:  โ—‹ Compiling / ...
internal:dev:  โœ“ Compiled / in 7s (3780 modules)
internal:dev:  โœ“ Compiled in 517ms (3780 modules)
internal:dev:  GET / 200 in 7802ms

almost 8 seconds to render the homepage ... โณ ๐Ÿคทโ€โ™‚๏ธ 3780 modules ๐Ÿคฏ what is this project doing ...? ๐Ÿ˜•

nelsonic commented 3 months ago

Upstream Next.js Dev Mode Slow Compilation: https://github.com/vercel/next.js/issues/48748 475 comments ๐Ÿ’ฌ

image

Who has time to read 475 comments? No wonder they are all using "AI" to summarise ... ๐Ÿ˜ฌ Opened over a year ago. Still no solution on the horizon. Not holding my breath that this will magically get fixed. โณ

https://github.com/vercel/next.js/issues/48748#issuecomment-2236783905

image

So for a medium-sized project the build times are 20 seconds ... ๐ŸŒ ๐Ÿ˜ฑ #painful

image

Follow up on Twitter indeed ... ๐Ÿ™ƒ

GriffinSauce commented 3 months ago

@nelsonic please note that table is about migrating a huge app with many quirks, medium sized is incorrect. Also note that CRA is as slow. It's more likely to be a problem with our (mid-migration) code/architecture than with Next.js. Also we're discussing on twitter because I need to keep the traces confidential. Do with that what you want but please don't take a run with my words/data without proper context.

nelsonic commented 3 months ago

@GriffinSauce thanks for the clarification. ๐Ÿ‘

Guessing you're referring to https://www.vio.com ? That does indeed seem like a huge app ... ๐Ÿ’ญ https://builtwith.com/vio.com ๐Ÿคฏ

Screenshot 2024-07-27 at 04-33-19 vio com Technology Profile

100+ technologies ... someone got greedy at the buffet. ๐Ÿ˜œ Product Owner: "We need all the features!"

https://pagespeed.web.dev/analysis/https-vio-com/ytjh3csbrl?form_factor=mobile

image

Maybe the people using Vio don't use it on the Mobile? ๐Ÿ“ฑ ๐Ÿšซ ๐Ÿ’ญ

I remember it as FindHotel. https://medium.com/viodotcom/findhotel-is-now-vio-com-154c4b9da045

image

looks like it't going well. ๐Ÿ‘Œ

The Nextra site we're building has ~100 pages with a few custom components; nothing special. It often takes 3-8 seconds to recompile and reload. โณ When deployed it's reasonably fast but I'd expect that from a static site. ๐Ÿ’ญ

The Next.js app has hundreds of pages and many custom components and the engineers working on it are having to do gymnastics to keep it from going slow. ๐ŸŒ That probably has more to do with GraphQL than anything else. ๐Ÿข The biggest challenge they are facing is testability! ๐Ÿงช Adding features is relatively easy in Next.js / React.js. ๐ŸŽ‰ Doing it reliably with good engineering and low latency, not so much. ๐Ÿ˜•

But again, please don't take my commentary personally, if you're getting your work done with Next.js/Nextra and the people using your product/site are happy, that's all that matters. โค๏ธ

nelsonic commented 2 months ago

Takes more than TEN SECONDS to load a page that has zero changes! ๐ŸŒ

image

automatically enabled Fast Refresh ... ๐Ÿ˜•

indeed ...

How long would slow refresh take? โณ