Skip to content

Commit

Permalink
Optimize the speed.
Browse files Browse the repository at this point in the history
See https://en.wikibooks.org/wiki/Optimizing_Code_for_Speed . There may have
been some refactorings too.
  • Loading branch information
shlomif committed Dec 4, 2024
1 parent 42e783d commit eea1a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cpan/Games-Solitaire-Verify/benchmark/gen-par-mak.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

my $MIN = 1;
my $MAX = 32_000;
my $STEP = 100;
my $STEP = 400;

my $ARGS = +{
cmd => qq#perl benchmark-no-backticks.pl -- -l lg -ni -l fg#,
min => $MIN,
max => ( $MAX / $STEP ),
res => sub {
return "Results/" . shift . ".res";
my ($start) = @_;
return "Results/${start}.res";
},
step => $STEP,
};
Expand Down
2 changes: 1 addition & 1 deletion cpan/Games-Solitaire-Verify/benchmark/sanity-test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ sub _cleanup
}
}
continue { ++$i; }
Carp::confess() if $i ne 101;
Carp::confess() if $i ne 401;
_cleanup();
unlink( "build.ninja", "par2.mak" );

0 comments on commit eea1a41

Please sign in to comment.