5 ms·
I'd be satisfied with that if I was a reviewer in the code review. I'd want that (and the proofs) explicitly mentioned in the comment, or at the very least in t
by cbsks 6y ago
I'd be satisfied with that if I was a reviewer in the code review. I'd want that (and the proofs) explicitly mentioned in the comment, or at the very least in the commit message.
At first glance the example seems contrived to me. Assuming that the code is deterministic, wouldn't it be trivial to measure the memory requirement for a particular input?
- thaumasiotes 6y agoThere are a lot of potential inputs.
- pantalaimon 6y agoso why is 5 enough? could there be an input where the number needs to be 15? or 1005?
- thaumasiotes 6y agoThis doesn't make any sense as a response to my comment. We said that you know that 5 is sufficient, but not that it's necessary. What were you trying to ask?
- cbsks 6y agoBut surely it would be possible to measure the memory requirements for one of those potential inputs...
- deleted 6y ago[deleted]