bearophile wrote:
Don:
That's not a very useful problem, because the timing depends entirely on
BigInt, which is completely unoptimised for small values.
You are usually right, but this time what you say is useless. There are other
means to judge how good a program is, beside running time:
- Total line count of the program;
- Max amount of memory used.
Well, I would hate for somebody to waste their time trying to optimise
that problem either for speed or memory consumption, when both are
limited by a fairly simple, short-term library issue.
Lines of code, sure.