in reply to Re^3: bigint == horrible performance?
in thread bigint == horrible performance?
So I removed "use bigint" .. lo, and behold! It runs .. fast.
Arbitrary precision math is, regardless of the language in which it is written, much, much slower than fixed precision. It is the nature of the beast. If you know how arbitrary precision math works it will not come as any surprise.
It therefore falls to the developer to understand that and only use arbitrary precision when it is actually required.
I have a tendency to get somewhat exasperated when I see people offering Math::Big* as a solution to problems where there is a perception of a "precision problem", when 95% of them have far simpler and more efficient solutions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: bigint == horrible performance?
by syphilis (Archbishop) on Nov 08, 2011 at 12:17 UTC | |
by BrowserUk (Patriarch) on Nov 08, 2011 at 15:27 UTC | |
|
Re^5: bigint == horrible performance?
by moodywoody (Novice) on Nov 08, 2011 at 11:01 UTC |