4 ms·
Here's where I start when I'm optimizing things: - Does my data fit in cache - Can I make it fit in cache? - Have I packed my memory efficiently? - Am I usi
by overgard 5y ago
Here's where I start when I'm optimizing things:
- Does my data fit in cache
- Can I make it fit in cache?
- Have I packed my memory efficiently?
- Am I using the right algorithm?
"Can the compiler inline this" is like 5000 on my list of things I care about. Compiler optimizations are mostly only useful to people who werent paying attention in the first place.
- josephcsible 5y ago> "Can the compiler inline this" is like 5000 on my list of things I care about. Compiler optimizations are mostly only useful to people who werent paying attention in the first place. Okay, you're definitely severely underestimating how much slower everything would be if compilers weren't allowed to optimize anymore.
- UncleMeat 5y agoYeah. For somebody who really cares a lot about cache misses he sure doesn't seem to be concerned about basic things like leaving virtual function calls in place.