|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^3: Most Significant Set Bitby Danny (Chaplain) |
| on Mar 15, 2024 at 23:20 UTC ( [id://11158300]=note: print w/replies, xml ) | Need Help?? |
|
Strangely using a stored $log2 = log(2) in the above test did not improve the log function speed. It was actually slightly slower.
EDIT: similar also with use constant log2 => log(2) EDIT2: The interpreter must compile such constant expressions into a constant before running.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||