adept-jpg-compressor icon indicating copy to clipboard operation
adept-jpg-compressor copied to clipboard

Measure function runtime to find optimization potential

Open technopagan opened this issue 12 years ago • 1 comments

After implementing automated black-white threshold detection and automatic tile-size adaption, the perceived runtime performance has dropped.

In the course of implementing unit tests, let's also implement function runtime measurements via "time" to see which processes take up the lion's share of total runtime. This will guide us to the parts of Adept's code that neeed priority in optimization.

technopagan avatar Jul 26 '13 11:07 technopagan

The main issue here is that iterating over all of the individual "cells" with bash is expensive; optimizing the shell script will only get us so far. If optimizing runtime speed/performance is the objective, the best solution is likely to port the code to C https://github.com/technopagan/adept-jpg-compressor/issues/27

joeyhoer avatar Jul 16 '14 16:07 joeyhoer