Re:Alpine Linux Docker images have NULL for root password
by johncolanduoni on Thursday May 09, 2019 @01:57AM
(#19865759)
You'd have to use a pretty esoteric platform to get that version. For most platforms you'll have a handle-rolled assembly version that's dramatically faster than that one (the x86_64 one is here[1]).
[1]: https://github.com/bminor/glibc/blob/master/sysdeps/x86_64/s...
Re:Alpine Linux Docker images have NULL for root password
by username223 on Wednesday May 08, 2019 @06:30PM
(#19863570)
This reminds me of a classic blog post:
http://ridiculousfish.com/blog/posts/old-age-and-treachery.html
All of those old Unix programs aren't fast by being simple and clean on the inside. Old age and treachery...
Re:Alpine Linux Docker images have NULL for root password
by globuous on Wednesday May 08, 2019 @07:03PM
(#19863779)
And this guy also https://news.ycombinator.com/item?id=14543536 (which comes with this: https://www.gnu.org/prep/standards/standards.html#Reading-No...)
then you look at: https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strl...
and your mind will sort of explode for a bit. The difference is the GLIBC version is dramatically faster; take the comments away and most of us wouldn't even know that's strlen. It's more complex, no question, but it's much faster. GLIBC is full of stuff like that. qsort and memcpy are non-obvious to many folks. It's not complexity for no reason, you'd be challenged to build a better qsort than the one in glibc, it's not easy.