commit | 3a4725a87796a3dec4c81501daef1eebf4d5ed88 | [log] [tgz] |
---|---|---|
author | Sen Jiang <senj@google.com> | Fri Apr 06 15:33:06 2018 -0700 |
committer | Sen Jiang <senj@google.com> | Mon Apr 09 17:32:51 2018 -0700 |
tree | 11da834207f4550a175063219e58c52ac89829e9 | |
parent | a65e5485c955499ec98cb052f7b1b00693dadae8 [diff] |
Exit loop ealier when matching lastoffset. |lastoffset| and |oldsize| doesn't change in this loop, no point keep incrementing |scsc| and comparing. bsdiff is about 2% faster with no change on the patch content. Bug: 77817425 Test: bsdiff_unittest Change-Id: Ie6a5ddc4b8805ed76c9c626fa75010617b7975ef