that's a meaningless statement, since the topic at hand is "why are websites slow" and the answer is universally "data storage and retrieval is challenging", and those things don't happen at the application layer.
-
This Tweet is unavailable.
-
-
This Tweet is unavailable.
-
unless the data is changing on every request, that sounds like a caching problem, but that's a bit beyond the scope of a twitter thread. there's like a 90% chance the answer is to cache something in redis. DMs are open if this is actually something you want help with.
1 reply 0 retweets 1 like -
This Tweet is unavailable.
-
my dude you can put all these things on the same machine if you want. The problem is that disks are slow, and the solution is to cache things in memory. That's literally all it is.
1 reply 0 retweets 1 like -
I would love it if it were the case that the primary problem with website speed was data coherency. It isn't. You can trivially hit F12 on most large commercial websites, do a perf and network trace, and see exactly what the problem is: craptons of serially dependent JS libs.
1 reply 0 retweets 10 likes -
Replying to @cmuratori @jordanorelli and
To make matters worse, a lot of times these JS libs _aren't even hash named_, so they have caching effectively turned off, which makes them load everytime. And of course, don't get me started on the craptons of advertising tracking crap that each take ~20ms. It's horrible.
1 reply 0 retweets 9 likes -
Replying to @cmuratori @jordanorelli and
I wasn't really joking with my original post. Web developers hand wave at a lot of actually hard problems ("it's network latency! it's data coherency! it's scalability") but if you actually profile the sites, none of those things are actually the problem.
2 replies 0 retweets 10 likes -
Replying to @cmuratori @jordanorelli and
The problem is just good old fashion shitty code, written by people who either don't know or don't care about how the way their program works affects the end user's experience. End of friggin' story.
1 reply 0 retweets 4 likes
Anyway, I wrote all of Molly Rocket's web site front and back end stuff by hand, and chose the CDN carefully for perf, so I know a lot about what is and is not going on. As a simple example of the ridiculousness, embedded YouTube frames on our site load 10x slower than the site.
-
-
Replying to @cmuratori @jordanorelli and
If you look at why, it's pretty straightforward. The profile is f'ing nuts. The things the YouTube programmers do just to display a single static image with a play button on it is more than everything on our entire site, including our animating icons!
0 replies 0 retweets 7 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.