4 ms·
You indirectly get at an important point: A complete specification must include best/worst/anortised performance constraints, and a lot of other details we oft
by vidarh 5y ago
You indirectly get at an important point:
A complete specification must include best/worst/anortised performance constraints, and a lot of other details we often leave unstated.
And then it gets a lot harder...
- qayxc 5y agoA complete specification also must include assumptions about external systems and limits. Here the assumptions are infinite stack (or item count < stack size limit) and a malloc that never fails. Incomplete specs are just as bad as buggy code. I'd even argue that incomplete specs are worse in this scenario, because the "proven correctness" gives a false sense of security.
- amw-zero 5y agoPerformance is not a part of behavior. Specification is about specifying logical behavior and that's it. I don't know of any specification framework that supports saying anything about performance.