|
|
|
|
|
by SAI_Peregrinus
514 days ago
|
|
Correctness of a program is usually distinct from performance. One obvious exception is code processing secret data. There, performance variance creates observable side-effects (timing side channels) which can be used to determine the secrets' values. Another is any sort of hard real-time system, where performance is critical to correctness. For example, a brake-by-wire system that took 10 seconds to respond to the pedal being pressed would be incorrect, because of poor performance. Otherwise, I agree. There might be some other exceptions, but striving for correctness first is a good way to write code. |
|