• Nutomic@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    Python is an interpreted language, which is fundamentally always slower than a compiled language like Rust. However the main performance bottleneck are actually sql queries, and I believe we make a lot more effort to optimize them compared to Piefed.

    • buttnugget@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      That makes sense to me logically. Are there advanced caching techniques being deployed? I’m really curious about this.

      • Nutomic@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        8 hours ago

        Not sure what you mean by “advanced caching”. There is some basic caching for data which rarely or never changes, for example most things in /api/v3/site. But other data like post listings change a lot, so caching is not an option and instead its a matter of optimizing the sql queries (using the right indexes, reducing the number of joins, making benchmarks and looking at query plans).

        Here is an issue on this topic: https://github.com/LemmyNet/lemmy/issues/5555