r/lolphp • u/Takeoded • Oct 18 '26
1-line obviously correct PR..
https://github.com/php/php-src/pull/23128a 1-line obviously correct PR turned into..
- glibc internals are examined.
- x86-64 multiarch implementations are discussed.
- musl behavior is discussed.
- aarch64 assembly paths are discussed.
- Individual CPU instructions are counted. (sub, cmp, cbz, b.hs)
... over 71 days.
A maintainer finally shut it down (merged it) with the comment
Jesus christ just merge this already, the amount of bike shedding is unbelievable
52
Upvotes
14
u/stumpychubbins Oct 18 '26
It’s not obviously correct, but once people figured out that it was correct (which happened almost immediately) all the discussion about performance was completely useless. We’ve known that memcpy should be preferred over memmove for as long as both functions existed, since the former is just the latter with fewer assumptions made about its inputs, so it’s wild how many people think they know better than the devs of the various libc implementations.
-5
u/Compux72 Oct 18 '26
I don't want to be that guy, but this whole conversation wouldn't exist on Rust
0
u/[deleted] Oct 20 '26
[removed] — view removed comment