Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slooooooooowwwwwww ... 🐌 #5

Open
nelsonic opened this issue Jul 22, 2024 · 5 comments
Open

Slooooooooowwwwwww ... 🐌 #5

nelsonic opened this issue Jul 22, 2024 · 5 comments

Comments

@nelsonic
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

Upstream Next.js Dev Mode Slow Compilation: vercel/next.js#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. ⏳

vercel/next.js#48748 (comment)
image

So for a medium-sized project the build times are 20 seconds ... 🐌 😱 #painful

image

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

@GriffinSauce
Copy link

GriffinSauce commented Jul 24, 2024

@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
Copy link
Member Author

@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
Copy link
Member Author

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? ⏳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants