You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added --timelimit option to zopflipng that stops iteration after the given
number of seconds has elapsed, as measured by clock() function that's supposed
to measure CPU time used.
This allows placing hard upper limit on how long optimization will take, e.g.
when server needs to respond with optimized image on time or when impatient
user is waiting for large image to optimize.
The time limit has the same inaccuracy as number of iterations:
ZopfliLZ77Optimal() may be called several times (e.g. when strategy==3),
multiplying actual number of iterations done, and so time. I did not try to
compensate for that.
Original issue reported on code.google.com by pornel...@gmail.com on 16 Jul 2013 at 2:59
I've missed the fact that ZopfliLZ77Optimal() is called for each block, so the
time limit is per block, which isn't very useful when blocks are split first.
Original comment by pornel...@gmail.com on 16 Jul 2013 at 5:05
Original issue reported on code.google.com by
pornel...@gmail.com
on 16 Jul 2013 at 2:59Attachments:
The text was updated successfully, but these errors were encountered: