Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: courgette/third_party/bsdiff_create.cc

Issue 1288703002: [Courgette] Optimize QSufSort to speed up courgette-gen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments and spacing. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | courgette/third_party/qsufsort.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/third_party/bsdiff_create.cc
diff --git a/courgette/third_party/bsdiff_create.cc b/courgette/third_party/bsdiff_create.cc
index d6ea69564ed8d577583ef6e752788767e1f60657..b883f733a6bdf3e69851cb22ed1098127fb3b568 100644
--- a/courgette/third_party/bsdiff_create.cc
+++ b/courgette/third_party/bsdiff_create.cc
@@ -22,6 +22,8 @@
--Stephen Adams <sra@chromium.org>
2015-08-03 - Extract qsufsort portion to a separate file.
--Samuel Huang <huangs@chromium.org>
+ 2015-08-12 - Interface change to qsufsort search().
+ --Samuel Huang <huangs@chromium.org>
*/
#include "courgette/third_party/bsdiff.h"
@@ -151,7 +153,7 @@ BSDiffStatus CreateBinaryPatch(SourceStream* old_stream,
scan += match_length;
for (int scsc = scan; scan < newsize; ++scan) {
match_length = qsuf::search<PagedArray<int>&>(
- I, old, oldsize, newbuf + scan, newsize - scan, 0, oldsize, &pos);
+ I, old, oldsize, newbuf + scan, newsize - scan, &pos);
for ( ; scsc < scan + match_length ; scsc++)
if ((scsc + lastoffset < oldsize) &&
« no previous file with comments | « no previous file | courgette/third_party/qsufsort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698