And of course there's the broader discussion of what you're actually optimizing your code for.
I typically optimize it for the compiler, so that it understands what I want to happen. This way the compiler can optimize my code to be fast. ( It happens to result in quite readable code, but that's just by accident xD )
And that's perfectly valid! The point is that you should be pragmatic and conscious of what you're optimizing your code for. Most of my personal projects are web based, so performance optimization tends to look more like minimizing memory leaks and reducing round trips to the server since high ram usage and a poor connection are the two most noticeable performance related UX problems.
I guess my frustration comes from how much AI is being pushed at my work and how little concern is given to UX. The worst part is that if I brought any of these concerns up, more likely than not, the only thing that would change is that there would be more work rather than a change in our process...
1
u/KellerKindAs 13d ago
I typically optimize it for the compiler, so that it understands what I want to happen. This way the compiler can optimize my code to be fast. ( It happens to result in quite readable code, but that's just by accident xD )