http://qs1969.pair.com?node_id=11141566


in reply to Performance issue in the loop.

I imagine, but have no evidence, this would speed things up a bit.

my $max; for my $i ( 1 .. $n - 1 ) { $max = -~0;

Replies are listed 'Best First'.
Re^2: Performance issue in the loop.
by rsFalse (Chaplain) on Feb 23, 2022 at 07:26 UTC
    Thanks. I tried your suggested code and I didn't observe an increase in performance.