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

Issue 1272453003: [Courgette] Extract qsufsort module and add tests. (Closed)

Created:
5 years, 4 months ago by huangs
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Courgette] Extract qsufsort module and add tests. This is to prepare for a follow-up CL to optimize qsufsort(), which reduces run time by ~40%, and "courgette -gen" run time by ~10%. Committed: https://crrev.com/c1de821fbf6dbefdc8eaf8db9e47e1b9ad20d0a9 Cr-Commit-Position: refs/heads/master@{#342883}

Patch Set 1 #

Patch Set 2 : Fix compile errors on Linux. #

Patch Set 3 : Sync. #

Patch Set 4 : Fix signed-unsigned comparison. #

Patch Set 5 : Update docs and checklicenses.py. #

Patch Set 6 : Sync. #

Total comments: 2

Patch Set 7 : Fix comment re. checklicenses.py UNKNOWN usage. #

Total comments: 5

Patch Set 8 : Use size_t to store ::strlen() returns. #

Patch Set 9 : Fix signed/unsigned issues from size_t usage. #

Patch Set 10 : Using int, but with explicit cast from ::strlen(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -455 lines) Patch
M courgette/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M courgette/courgette.gyp View 3 chunks +7 lines, -5 lines 0 comments Download
M courgette/third_party/README.chromium View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M courgette/third_party/bsdiff_create.cc View 5 chunks +7 lines, -158 lines 0 comments Download
A + courgette/third_party/qsufsort.h View 1 2 6 chunks +23 lines, -292 lines 0 comments Download
A courgette/third_party/qsufsort_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +135 lines, -0 lines 0 comments Download
M tools/checklicenses/checklicenses.py View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (19 generated)
huangs
PTAL.
5 years, 4 months ago (2015-08-04 18:10:09 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/40001
5 years, 4 months ago (2015-08-04 21:26:39 UTC) #5
huangs
PTAL.
5 years, 4 months ago (2015-08-04 21:27:11 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/38284) linux_android_rel_ng on ...
5 years, 4 months ago (2015-08-04 21:53:22 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/60001
5 years, 4 months ago (2015-08-05 15:30:48 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/94552)
5 years, 4 months ago (2015-08-05 16:46:51 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/80001
5 years, 4 months ago (2015-08-05 19:48:12 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-05 20:54:52 UTC) #17
dgarrett-goog
On 2015/08/05 20:54:52, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 4 months ago (2015-08-07 20:55:35 UTC) #18
huangs
Thanks! ONWER review to thestig@ for: tools/checklicenses/checklicenses.py I'm splitting module from Courgette's third_party library qsufsort, ...
5 years, 4 months ago (2015-08-10 15:04:54 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/100001
5 years, 4 months ago (2015-08-10 17:03:17 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-10 18:03:10 UTC) #24
Lei Zhang
Is this third party code really Google written code? If so, can we just fix ...
5 years, 4 months ago (2015-08-10 18:45:49 UTC) #25
huangs
The third party code bsdiff is from here: http://www.daemonology.net/bsdiff/ It contains an implementation of qsufsort ...
5 years, 4 months ago (2015-08-10 18:55:13 UTC) #26
Lei Zhang
https://codereview.chromium.org/1272453003/diff/100001/tools/checklicenses/checklicenses.py File tools/checklicenses/checklicenses.py (right): https://codereview.chromium.org/1272453003/diff/100001/tools/checklicenses/checklicenses.py#newcode132 tools/checklicenses/checklicenses.py:132: 'courgette/third_party/qsufsort.h': [ Care to also pile this in with ...
5 years, 4 months ago (2015-08-10 19:31:05 UTC) #27
huangs
Updated, PTAL. https://chromiumcodereview.appspot.com/1272453003/diff/100001/tools/checklicenses/checklicenses.py File tools/checklicenses/checklicenses.py (right): https://chromiumcodereview.appspot.com/1272453003/diff/100001/tools/checklicenses/checklicenses.py#newcode132 tools/checklicenses/checklicenses.py:132: 'courgette/third_party/qsufsort.h': [ On 2015/08/10 19:31:05, Lei Zhang ...
5 years, 4 months ago (2015-08-10 19:47:21 UTC) #28
Lei Zhang
lgtm
5 years, 4 months ago (2015-08-10 20:17:59 UTC) #29
huangs
Thanks! Submitting.
5 years, 4 months ago (2015-08-10 20:19:56 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/120001
5 years, 4 months ago (2015-08-10 20:20:27 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/86849)
5 years, 4 months ago (2015-08-10 20:30:19 UTC) #35
Will Harris
lgtm with size_t/int nits. https://codereview.chromium.org/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc File courgette/third_party/qsufsort_unittest.cc (right): https://codereview.chromium.org/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc#newcode33 courgette/third_party/qsufsort_unittest.cc:33: int len = ::strlen(test_cases[idx]); strlen ...
5 years, 4 months ago (2015-08-11 17:31:37 UTC) #36
huangs
https://chromiumcodereview.appspot.com/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc File courgette/third_party/qsufsort_unittest.cc (right): https://chromiumcodereview.appspot.com/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc#newcode33 courgette/third_party/qsufsort_unittest.cc:33: int len = ::strlen(test_cases[idx]); On 2015/08/11 17:31:36, Will Harris ...
5 years, 4 months ago (2015-08-11 17:46:04 UTC) #37
Will Harris
https://codereview.chromium.org/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc File courgette/third_party/qsufsort_unittest.cc (right): https://codereview.chromium.org/1272453003/diff/120001/courgette/third_party/qsufsort_unittest.cc#newcode33 courgette/third_party/qsufsort_unittest.cc:33: int len = ::strlen(test_cases[idx]); On 2015/08/11 17:46:03, huangs wrote: ...
5 years, 4 months ago (2015-08-11 17:58:43 UTC) #38
huangs
Another problem is that qsufsort has "int oldsize". Also, I and V need to be ...
5 years, 4 months ago (2015-08-11 18:03:01 UTC) #39
Will Harris
On 2015/08/11 18:03:01, huangs wrote: > Another problem is that qsufsort has "int oldsize". Also, ...
5 years, 4 months ago (2015-08-11 18:10:07 UTC) #40
huangs
Ah oops, uploaded patch. Okay, reverting to using int, but with explicit cast from ::strlen().
5 years, 4 months ago (2015-08-11 18:17:27 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/180001
5 years, 4 months ago (2015-08-11 18:35:11 UTC) #43
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-11 20:21:57 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272453003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272453003/180001
5 years, 4 months ago (2015-08-11 20:23:33 UTC) #48
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-11 20:59:03 UTC) #49
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 20:59:52 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c1de821fbf6dbefdc8eaf8db9e47e1b9ad20d0a9
Cr-Commit-Position: refs/heads/master@{#342883}

Powered by Google App Engine
This is Rietveld 408576698