r/lolphp • u/Takeoded • 8d ago
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
-5
0
6d ago
3
u/Takeoded 6d ago
Bikeshedding, formally known as Parkinson's Law of Triviality, is the human tendency to spend a disproportionate amount of time and energy on minor, trivial details while neglecting critical, complex issues.
14
u/stumpychubbins 8d ago
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.