Hacker News new | ask | show | jobs
by cunac 4724 days ago
by testing and measuring performance ? In real world it is rare that you have easy way to guess actual overall impact of your optimization.

sure you profile and go for hotspots but still it is very hard to actually understand full impact and CS algorithms are done in ideal conditions so they don't address complexity of executing environment and might be misleading path for optimization.

1 comments

I think the question is how can you be confident that the optimised code does exactly the same thing as the non-optimised code.