Fix method comparison and buffer in place performance.