Re:Pointers Are More Abstract Than You Might Expect in C
by steveklabnik on Monday July 02, 2018 @01:56PM
(#17443924)
Where do you get that 90/10 split from? Just curious.
[ Parent
| on HN ]
Re:Pointers Are More Abstract Than You Might Expect in C
by jeremiep on Tuesday July 03, 2018 @02:42PM
(#17452693)
Talks from Mike Acton and Scott Meyers, specifically "Data-Driven Development" and "CPU Caches and why you should care" respectively.
I forgot exactly where I got that number, but it's been a pretty good metric so far.
In a nutshell; the compiler is great a micro-optimizations and absolutely terrible at macro-optimizations. The former will get you a few percent of perf boosts while the later usually results in orders of magnitudes of performance gains.
Its near impossible to apply macro-optimizations at the end of a project without massive refactors.
Re:Pointers Are More Abstract Than You Might Expect in C
by steveklabnik on Tuesday July 03, 2018 @06:12PM
(#17453986)
Cool, I'll check those out, thank you!
Re:Pointers Are More Abstract Than You Might Expect in C
by Narishma on Tuesday July 03, 2018 @06:29PM
(#17454105)
I believe the 10/90 number may be from this talk, though I don't have time to rewatch it to confirm:
https://www.youtube.com/watch?v=rX0ItVEVjHc