http://www.perlmonks.org?node_id=11105862


in reply to Re: working with png data
in thread working with png data

If you dont know where the bottleneck lies.... Throw in threads and hope it speeds up sprintf?

Replies are listed 'Best First'.
Re^3: working with png data
by Anonymous Monk on Sep 09, 2019 at 11:51 UTC
    the time is wasted in :
    $pdata |= ~$png->wbmp($_) foreach (@col);
    the while loop with the sprintf is not the bottleneck. (maybe not optimal, but contribute less)