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

all 13 comments

sorted by: hot top controversial new old
[–] 13 points 2 years ago

Im more concerned about the stupid license

  • source
  • [–] 9 points 2 years ago* (last edited 2 years ago) (5 children)

    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.

  • source
  • hideshow 5 child comments
  • [–] 5 points 2 years ago (3 children)

    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?!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 2 years 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.

  • source
  • parent
  • [–] 6 points 2 years 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.

  • source
  • [–] 5 points 2 years ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 5 points 2 years 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.

  • source
  • parent
  • [–] 4 points 2 years ago

    Why do you think it would affect performance?

  • source
  • [–] 3 points 2 years 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.

  • source
  • [–] 0 points 2 years ago

    It is faster, optimization is one of the uutils project's stated goals.

  • source