in reply to how to speed up program dealing with large numbers?
With regards to speeding up your code, you could try to profile it. See the Tutorials section: Profiling your code.
I would also appreciate any constructive criticism on my code, I am here to learn.perlcritic is a handy tool for automatically criticizing your code.
A more Perl-ish way to write this for loop is:for($i = $value; $i <= $range; $i++){
Alsofor $i ($value .. $range){
can be written as (with less typing):print $fibValue1.' / '.$fibValue2.' = '.$phiApprox;
print "$fibValue1/$fibValue2 = $phiApprox";
Update: fixed link.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to speed up program dealing with large numbers?
by Solarplight (Sexton) on Mar 22, 2010 at 00:23 UTC |