26
top 2 comments
sorted by: hot top new old
[-] LovableSidekick@lemmy.world 1 points 2 months ago

Good news, Everyone!
Srsly this is great!

[-] TehPers@beehaw.org 1 points 2 months ago

If you know a faster/better way to sort byte arrays in Java/Clojure let me know!

I don't know much Clojure, but this should be doable in Java. I would be interested in seeing the results of sorting the data via both quicksort and heap sort. I'm not sure what sort Clojure defaults to, but if the distribution of IDs is uniform, then I'd imagine the downsides of heap sort are pretty much universal to all sorts you're likely to use, which makes it more interesting here to me.

At the very least, Clojure's docs seem to say that sort is stable, which isn't needed here (we know all IDs are unique). You can probably gain performance just by switching to a performant unstable sort, just in general.

this post was submitted on 30 Jun 2026
26 points (96.4% liked)

Programming

28304 readers
320 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS