News for hackers. Stuff that matters.
Re:Rob Pike's Rules of Programming (1989) by vvanders on Wednesday August 12, 2020 @08:38PM (#24138793)
Yeah but some things like how you structure your data(which then drives CPU cache misses) aren't something you can easily adjust/tune.

Usually when you encounter one of those it's a rewrite/rearchitecture of a whole module/subsystem before you see any gains. Been there done that, not excited to repeat it again.

Re:Rob Pike's Rules of Programming (1989) by tonyhb on Wednesday August 12, 2020 @09:35PM (#24139126)
The other rule is choose your data structures wisely.
Re:Rob Pike's Rules of Programming (1989) by tikiman163 on Saturday August 15, 2020 @05:44PM (#24172694)
The number of people who don't understand when to use a list/array VS dictionary/hash table vs lookup object is too damn high. A huge amount of basic optimization is constantly at their fingertips and they nearly always choose to make a list/array and use linq to join/merge multiple relational data sets instead of optimized standard objects.
Re:Rob Pike's Rules of Programming (1989) by keithnz on Wednesday August 12, 2020 @10:32PM (#24139389)
sure, sometimes your approach is at fault, but as the rule says, sometimes it's just a surprising bottleneck. Having done a lot of embedded work, I've found that many of those can often be fixed in a straightforward manner. Sometimes, you have to change your approach though.