3 ms·
BSD devs tend to prioritise clean code over speed. I'm not certain of the implementation details here but their approach does make openbsd coreutils a more plea
by yung_steezy 4y ago
BSD devs tend to prioritise clean code over speed. I'm not certain of the implementation details here but their approach does make openbsd coreutils a more pleasant read than the GNU coreutils.
- trelane 4y agoDo the various BSD equivalents have to also work on other, esoteric OSen, or do they generally tend to fork a new version only to run on just on that flavour of BSD?
- bauruine 4y agoNot exactly an answer but OpenBSD sometimes has different portable versions of their software. e.g. https://www.openssh.com/portable.html https://www.openssh.com/portable.html
- pxc 4y agoIdk about the stuff that's normally ‘included’ in the distribution (base install of the OS), but NetBSD's package manager supports a ton of platforms. I've used it on Linux and macOS.
- rahen 4y agoAlso clean code usually results in compact code, which used to be effectively the same as fast code for the machines BSD was initially developed for. I wouldn't be surprised if the BSD coreutils were more performant on older machines with small memory, buffers and prefetch queues (sometimes just a few bytes) than their GNU counterpart.
- masklinn 4y agoI would be very surprised. An 8k buffer is hardly a large imposition, and less syscalls has always been hugely beneficial.