News for hackers. Stuff that matters.
Re:The GitHub website is slow on Safari by slt2021 on Wednesday August 27, 2025 @11:33AM (#45041118)
the problem is developers having fast modern machines.

if they were forced to use slow machines, they would not be able to put out crap like that

Re:The GitHub website is slow on Safari by __alexs on Wednesday August 27, 2025 @11:46AM (#45041255)
It is garbage even on my extremely high end desktop PC.
Re:The GitHub website is slow on Safari by mrbombastic on Wednesday August 27, 2025 @12:07PM (#45041536)
M4 macbook pro and almost unusably slow
Re:The GitHub website is slow on Safari by lowwave on Wednesday August 27, 2025 @03:04PM (#45043661)
Ah the wonders of SPA! I know there are lighter ones, but it is not the first time hearing things like React being slow. Of course, when one start to do sntax highlighting on the client side....
Re:The GitHub website is slow on Safari by humpty-d on Wednesday August 27, 2025 @04:24PM (#45044718)
Various comments and links throughout the discussion of this post indicate that the problem is a mix of the sheer number of nodes and css. It has nothing to do with React or being a React SPA, which it's also not, unless you have some proof otherwise.
Re:The GitHub website is slow on Safari by bythreads on Thursday August 28, 2025 @01:42AM (#45048806)
React and the most commonly used pattern inherently promotes an way to complex html Node structure and shitty css, especially if stuff like tailwind is used.

Now you CAN so it so that is not the case, but tbh i have never seen that in the wild -

Re:The GitHub website is slow on Safari by troupo on Thursday August 28, 2025 @03:07AM (#45049318)
Lol. If anything, Tailwind isn't shitty CSS (because it's a very limited number of classes) unlike the gazillion one-off classes that CSS-in-JS or even BEM encourages

Edit: here's a good investigation on a real-enough app https://www.developerway.com/posts/tailwind-vs-linaria-perfo...

Re:The GitHub website is slow on Safari by typpilol on Thursday August 28, 2025 @03:27AM (#45049443)
Yes what's with his comment?

Tailwind is probably one of the best considering you can use Vite to literally strip out all unused css easily.

And I think tailwind v4 does this automatically

Re:The GitHub website is slow on Safari by Tadpole9181 on Wednesday August 27, 2025 @04:27PM (#45044747)
> When native software is slow, it's bad software. When web software is slow, react is bad software.

This is such a tired trope.

Re:The GitHub website is slow on Safari by const_cast on Wednesday August 27, 2025 @10:02PM (#45047513)
Its not really a trope, the opposite is much more common. People are much more quick to mindlessly blame SSR for slowness like with ROR or PHP.

The reality is both can be slow, it depends on your data access patterns, network usage, and architecture.

But the other reality is that SPAs and REST APIs just usually have less optimal network usage and much worse data access patterns than traditional DB connected SSR monoliths. Same goes for micro service.

Like, you could design a highly scalable and optimal SPA. Who's doing it? Almost nobody.

No, instead they're making basically one endpoint per DB table, recreating SQL queries in client side memory, duplicating complex business logic on the front and back end, and sending 50 requests to load an dashboard.

Re:The GitHub website is slow on Safari by whstl on Thursday August 28, 2025 @03:29AM (#45049456)
React also has a class of problems that doesn't really happen in other types of apps: re-renders.

Even other frameworks like Vue.js, Solid or Svelte don't really suffer from it as much. It simply happens a couple order of magnitudes more often in React than any other framework.

Re:The GitHub website is slow on Safari by can16358p on Wednesday August 27, 2025 @03:22PM (#45043882)
While I agree about devs should be testing on slow devices, the particular target audience of the site generally have pretty decent machines (including two that I have) and there isn't much reason for the site lag. It's not really doing any 3D rendering with complex shaders or video filtering; it just shows changed lines in two files. That shouldn't lag.
Re:The GitHub website is slow on Safari by m0llusk on Thursday August 28, 2025 @08:17AM (#45051252)
I code on ten year old laptops and use Bitbucket CLI in part because of all this.
Re:The GitHub website is slow on Safari by chipsrafferty on Friday August 29, 2025 @03:18AM (#45061168)
It should be the same speed as running git diff in your console. And it should support histogram style diff...
Re:The GitHub website is slow on Safari by ponector on Wednesday August 27, 2025 @08:20PM (#45046904)
Only in the ideal world, where developers test results of their work on their machines. Test for real, with real db, not with empty or mocks.
Re:The GitHub website is slow on Safari by const_cast on Wednesday August 27, 2025 @09:57PM (#45047482)
I don't think so, I think the problem is their devs work on tiny play pretend codebases or micro service architecture.

GitHub is big software, but not that big. Huge monorepos and big big diffs grind GitHub to a pulp.

Re:The GitHub website is slow on Safari by Atotalnoob on Wednesday August 27, 2025 @10:26PM (#45047645)
GitHub runs a mostly monolithic architecture
Re:The GitHub website is slow on Safari by guappa on Thursday August 28, 2025 @05:20AM (#45050115)
So? You can still do a PR of 1 line and the diff will only show that 1 line.
Re:The GitHub website is slow on Safari by aleph_minus_one on Thursday August 28, 2025 @09:00AM (#45051651)
> the problem is developers having fast modern machines.

> if they were forced to use slow machines, they would not be able to put out crap like that

Lots of developers are rather obsessed with writing good, performant code. The problem is rather that many project managers do not let them do these insane optimizations because they take time.

The only things that forcing developers to use slow machines will bring is developers quitting (and quite a lot of them would actually love to see the person responsible for this decision dead (I'm not joking) because he made the developers' job a hell on earth).

What you should rather do if you want performant software is to fire all the project managers who don't give the developers the necessary time (or don't encourage the developers) to write highly optimized code (i.e. those idiot project managers who argue with "pragmatism" concerning this point).

Re:The GitHub website is slow on Safari by otabdeveloper4 on Thursday August 28, 2025 @09:41AM (#45052060)
> because they take time

No they don't. It's literally just a skill issue.

Re:The GitHub website is slow on Safari by aleph_minus_one on Thursday August 28, 2025 @10:17AM (#45052460)
Fast algorithms are often more complicated.

To give just one simple example: to get the textbook complexity bound for the Dijkstra algorithm, you need some fancy mergeable heap data structures which are much more complicated, and thus time-intense to implement than the naive implementation.

Or you can get insane low-level optimizations by using the SIMD instructions that modern processors provide. Unluckily, this takes a lot of time and leads to code that is not easy to understand (and thus not easy to write) for "classically trained" programmers.

Yes, you indeed need a lot of skills to write such very fast algorithms, but even for such ultra-smart programmers, finding and applying such optimizations need a lot of development time, which is why this is often only done for code parts that are insanely computation-intense and performance-critical such as video (and sometimes audio) codecs.

Re:The GitHub website is slow on Safari by slt2021 on Thursday August 28, 2025 @12:48PM (#45054315)
the most common cause is architecture, not algorithms