How would you optimize a computer vision algorithm to improve its runtime without sacrificing accuracy?