|
|
|
|
|
by sicp-enjoyer
1205 days ago
|
|
> developer time is a significantly more expensive resource than compute This also presupposes that making a fast program is a lot more work. However poor performance is usually due to negligence rather than a lack of optimization effort. All you need to write reasonably fast code by default (without micro-optimizing) is: 1. a good knowledge of available algorithms
2. a good understanding of the problem 1. Is a one-time investment on the programmers part that benefits all future programs they write. There is no marginal cost to being familiar with what's available in <algorithm>. 2. Has a marginal cost, but it's probably a time saver anyway. Measure once, cut twice. |
|