-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed all the
goto &Math::*
calls to regular function calls.
This may prevent some memory leaks in some special cases. One such example, is the following, which used over 500 MB of RAM: use Sidef; my $n = Sidef::Types::Number::Number->new(0); my $d = Sidef::Types::Number::Number->new(6); my $digits = $d x $d; foreach my $k (1..1e6) { push @list, $n if index($n->inc->pow($d)->mul($d), $digits) >= 0 } Now, the above code requires only 25 MB of RAM.
- Loading branch information
Showing
1 changed file
with
19 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters