I use eternity for Lemmy, no matter how trash my internet is, everything loads so fast!

  • umbraroze@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    15 hours ago

    Reddit’s backend is absolute junk and not designed for efficiency from the ground up, they just keep throwing more servers in and solve the efficiency bottlenecks with a shitload of caching. A site whose meat and potatoes is text comments and links just shouldn’t be this crap at it.

    Lemmy has the benefit of hindsight in design and the fact that each server is only really responsible for a subset of all Lemmy users.

  • rsuri@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    22 hours ago

    Probably less javascript. In theory, javascript makes sites faster because it diverts processing to the user’s browser. In reality, developers use it to load all sorts of frameworks, third party whatevers, and other crap that slows things down. In other words, the same reason old websites load fast.

    • InverseParallax@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      18 hours ago

      Also the reddit app is absolute steaming garbage that tries to throw ads and videos at you constantly.

      So much of our software is slowed down by what’s basically ad analytics, because we have to remember, the ads are the actual product here.

  • AwkwardLookMonkeyPuppet@lemmy.world
    link
    fedilink
    English
    arrow-up
    83
    arrow-down
    1
    ·
    2 days ago

    Because Lemmy isn’t running a thousand tracking scripts, and they’re not intentionally making the mobile website barely functional to push you to an app where they can track even more.

      • higgsboson@dubvee.org
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

        It is plausible that they might slow down traffic coming in via those 3rd party apps. Certainly they know, for example, who uses Infinity vs the Reddit app. Obviously they want to control the client to force ads on users.

  • givesomefucks@lemmy.world
    link
    fedilink
    English
    arrow-up
    164
    arrow-down
    5
    ·
    2 days ago

    Probably all the ad tracking shit running in the background.

    Not to mention the IPO has them cutting costs everywhere to make them look profitable.

    I also wouldn’t put it past them to intentionally slow down people who aren’t logged in.

    • AnyOldName3@lemmy.world
      link
      fedilink
      arrow-up
      50
      ·
      2 days ago

      I’m pretty sure Reddit used to be profitable. There used to be a bar on the right-hand side that showed how far each day’s Reddit Gold purchases had gone towards covering the day’s server costs. When I first started using Reddit, it’d typically be about a third of the way full when it reset, but a few years after the at, it was filling up after about eight hours, suggesting they were covering the server costs three times over, which should have left plenty of money for staffing costs as they didn’t have many staff back then. Eventually, they got rid of the bar. Later, they did things that would have increased costs, like hiring people to make New Reddit and the Reddit App, and hosting images and videos themselves instead of leaving it to imgur, and I guess these were enough to make them no longer profitable and force them to aim for faster growth.

      • givesomefucks@lemmy.world
        link
        fedilink
        English
        arrow-up
        26
        arrow-down
        2
        ·
        2 days ago

        There was corpo phrasing in that…

        It was amount of gold equal to server time assuming all the gold was bought.

        But mods would get a shit ton to give out. And towards the end when you got gold you got “coins” as well that could be used to give gold.

        Like, say I want to make “Fun Time bucks” a thing. To drive adoption I’m going to give out free fun time bucks to everyone, they spend because it’s free, and people start seeing it as valid.

        Reddit was pumping gold so people saw it and hopefully they bought it because they assumed everyone else was buying it. But most of it was “free” gold.

      • JWBananas@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        There used to be a bar on the right-hand side that showed how far each day’s Reddit Gold purchases had gone towards covering the day’s server costs.

        There were always people costs too, and plenty of others. Breaking even on infrastructure doesn’t stop the bleed of the venture capital. And investors do expect a return.

    • RedditRefugee69@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 days ago

      I know for a fact they have wait() code in there. If you try to do anything on a thread the OP has blocked you, it takes 10s or so minimum.

  • leftzero@lemmynsfw.com
    link
    fedilink
    arrow-up
    49
    arrow-down
    1
    ·
    2 days ago

    Reddit is running on a potato.
    Lemmy is running on several distributed potatoes, with a much smaller user load per tuber (and many orders of magnitude less bots).

  • Boozilla@lemmy.world
    link
    fedilink
    English
    arrow-up
    69
    arrow-down
    1
    ·
    2 days ago

    Much smaller user base, distributed servers, modern code (versus reddit’s ancient code), less enshittification in the code (reddit’s various manipulative algorithms).

      • Dark Arc@social.packetloss.gg
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        Yeah… Lemmy’s code and the way it implements activity pub is not the greatest… A lack of batch operations means that every single federated like is an HTTP request of its own.

        • Rikudou_Sage@lemmings.world
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          My favourite is having to send the activities sequentially, meaning you can very easily block the queue when a request fails.

          And that’s just the network architecture. Database architecture is another kind of hell. Like a simple delete operation taking multiple minutes because there’s a multitude of triggers, some of which take very long. That in itself is not bad, but the fact that the api waits for all the operations to succeed or fail (or the more usual case, timeout) is bonkers. Either fix the db or do it in the background.

          I was excited for Lemmy a year and a half ago, which quickly passed. Thinking of migrating my server to some alternative. If Sublinks launches eventually, I’m migrating in an instance, currently thinking of writing an api compatibility layer between Lemmy and Piefed to migrate without anyone noticing.

    • IMALlama@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      2 days ago

      It’s probably down to how much random crap is being loaded along with what you’re trying to see. The modern web means page load takes forever, in part because of all the random things your browser also has to pull down. Some of this content need to be loaded before you can render much of anything and some of that will result in calls to yet more random servers. Look at the network tab in your browser’s dev tools to see what I’m talking about. Without an ad blocker you’re probably looking at calls to 10-20 servers just to load a webpage.

      The old reddit API was actually pretty snappy, in part because it didn’t need a lot of this overhead. I suspect the same is true for Lemmy - no extra fluff.

  • ShepherdPie@midwest.social
    link
    fedilink
    arrow-up
    38
    ·
    2 days ago

    I think this is instance dependent. Midwest.social is super slow for me frequently and times out a lot depending on the time of day.

  • patrick@lemmy.bestiver.se
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    2 days ago

    It’s definitely instance dependent. I run the servers for my instance at the closest Hetzner data center to myself (west coast USA) for latency reduction and over-size/engineer it for better perf.

    My instance is open for registration too, if anybody reading here would find that useful.

  • n3m37h@sh.itjust.works
    link
    fedilink
    arrow-up
    22
    ·
    2 days ago

    You may just be connecting to a server that is much closer, there are also more smaller servers for a much smaller client based too. People who host these servers are usually in the IT community and probably hella overspecd the server vs userbase size too. Lemmy is also an open source project that has a lot of eyes to solve and fix issues

    • snooggums@lemmy.world
      link
      fedilink
      English
      arrow-up
      23
      ·
      2 days ago

      probably hella overspecd the server vs userbase size too

      properly specd by ensuring that the system could handle spikes in activity.