Re: ? 2e100_000 -- a killer statement
- Posted by mattlewis (admin) Jun 26, 2013
- 1445 views
_tom said...
The one line program
? 2e100_000 --BAD
- causes a huge jump in cpu usage and no result
- (testing on i5 netbook, Linux oEu 4.0.5)
The problem occurs with both eui and euc.
? 2e100_00 -- OK
It's the brute force way we parse scientific notation. It's done by std/scinot.e. 2 * 10100,000 results in a lot of calls to carry() and a lot of sequence manipulation. It doesn't work well with such large exponents.
Matt