3 ms·
While I mostly agree with you, I think that use of double indirect pointers is rare enough that in effect each use of one probably counts as a "line of code" w
by Taniwha 6y ago
While I mostly agree with you, I think that use of double indirect pointers is rare enough that in effect each use of one probably counts as a "line of code" when trying to understand what's going on.
The one Linus doesn't like likely runs faster (at a microarchitectural level), it's also the thing I've done for 40 years now, it's what comes out of my fingers when I code linked lists, for me at least it's more understandable because I already understand it
- varjag 6y agoIt's very unlikely it is faster.
- deleted 6y ago[deleted]
- erik_seaberg 6y agoA good compiler should keep *p in a register because there are no aliases that might modify it, but a poor compiler might follow p a second time.