With Ubuntu changing to the Rust implementation of coreutils, what does that mean for performance?

  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    3
    ·
    edit-2
    2 hours ago

    The performance you’re dealing with here is in the tens of milliseconds possibly hundreds if you’re lucky. Anyone seriously pursuing this issue from the angle of performance genuinely doesn’t understand the deep rooted issues here.

    If you’re so incredibly hard up for compute time that it’s critical for you to squeeze out the extra 1/10 of a second from your system utilities then you need to shut your fucking computer down and go touch grass.

    I mean even if this saves you 30 seconds a day 50 weeks a year 5 days a week that’s 2 hours per year it’s saving you… I’d rather slow fuck the two hours and get an extra 2 hours of pay.

    • noli@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      1 day ago

      I’d take those tens of milliseconds. That shit scales and I’ve seen infra in the scale of millions more-or-less glued together by shell scripts and coreutils/busybox.

    • cerement@slrpnk.net
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      this was me watching some of the cheering when neofetch got archived, people complaining “good, neofetch is too slow” – WTF were you doing with neofetch where speed was a factor?!

        • cerement@slrpnk.net
          link
          fedilink
          arrow-up
          6
          ·
          1 day ago

          when the last message was “Have taken up farming.”, kinda hard to hold anything against them …

      • Leaflet@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        On some systems neofetch would actually run quite slow. Even on my fast system it would occasionally take a second because it hung on one step.

  • Beej Jorgensen@lemmy.sdf.org
    link
    fedilink
    arrow-up
    5
    ·
    2 days ago

    Rust has some big binaries due to static linkage, and the Rust coreutils gets around this Busybox-style, compiling everything into one binary that you hard link to. Pretty neat. The project is easy to build and mess with without installing if you’re curious about it. And you could add the build dir to the front of your path if you want to try it out with low risk.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    2 days ago

    I don’t think anyone is relying on performance of coreutils. If you’re concerned about performance, you’re already writing a program directly, not using a shell script.

    • ProtonBadger@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Relying on is perhaps too strong, but I enjoy operations like sort getting faster and I don’t know how they’ve written cp but there’s a cp alternative using async IO with io_uring that’s almost twice as fast, I’m sure it’d interest people if such optimizations made it into coreutils.

  • satans_methpipe@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    2 days ago

    I think your question is relevant as there are unfortunately plenty of shell scripts out there doing critical batch work. But it won’t change the momentum of the Rust push happening right now.