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

Issue 100004: Hand craft an A/B test of SDCH compression... (Closed)

Created:
11 years, 8 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
Lincoln, wtc
CC:
chromium-reviews_googlegroups.com, kmixter
Visibility:
Public.

Description

Hand craft an A/B test of SDCH compression After we're sure we can do SDCH compression to a given URL, toss a 50-50 coin each time we have a chance to advertise SDCH, and either completely avoid advertisement, or advertise (including the dictionary). Histogram both compression download times, as well as the download times for the "completely avoid" case. http://crbug.com/11236 bug=11236 r=wtc,openvcdiff Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=15010

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 67

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 5

Patch Set 18 : '' #

Patch Set 19 : '' #

Total comments: 16

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Total comments: 2

Patch Set 23 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -176 lines) Patch
M net/base/filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +14 lines, -0 lines 0 comments Download
M net/base/filter_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M net/base/load_flags.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -6 lines 0 comments Download
M net/base/sdch_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -28 lines 0 comments Download
M net/base/sdch_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 7 chunks +10 lines, -115 lines 0 comments Download
M net/base/sdch_filter_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M net/base/sdch_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +24 lines, -8 lines 0 comments Download
M net/base/sdch_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +24 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.h View 2 3 4 5 6 7 8 9 15 16 17 18 19 20 1 chunk +12 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +48 lines, -14 lines 0 comments Download
M net/url_request/url_request_job.h View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +53 lines, -1 line 0 comments Download
M net/url_request/url_request_job.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +167 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jar (doing other things)
11 years, 8 months ago (2009-04-29 01:08:17 UTC) #1
jar (doing other things)
I had asked Wan Teh to code review this, but I forgot to CC Ken ...
11 years, 7 months ago (2009-04-29 16:07:42 UTC) #2
Lincoln
http://codereview.chromium.org/100004/diff/1148/1151 File net/base/filter.h (right): http://codereview.chromium.org/100004/diff/1148/1151#newcode53 Line 53: enum STATISTIC_SELECTOR { This looked at first like ...
11 years, 7 months ago (2009-04-29 21:42:40 UTC) #3
wtc
http://codereview.chromium.org/100004/diff/1148/1151 File net/base/filter.h (right): http://codereview.chromium.org/100004/diff/1148/1151#newcode53 Line 53: enum STATISTIC_SELECTOR { STATISTIC_SELECTOR doesn't conform to our ...
11 years, 7 months ago (2009-04-29 21:57:40 UTC) #4
jar (doing other things)
Excellent review by both of you (Wan Teh and Lincoln)!!! You both made some excellent ...
11 years, 7 months ago (2009-04-30 03:41:09 UTC) #5
Lincoln
LGTM http://codereview.chromium.org/100004/diff/1148/1156 File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/100004/diff/1148/1156#newcode224 Line 224: return 0 != (request_info_.load_flags & net::LOAD_SDCH_DICTIONARY_ADVERTISED); On ...
11 years, 7 months ago (2009-04-30 15:47:06 UTC) #6
jar (doing other things)
I responded to Lincoln's comments (see below), and also added an error code for the ...
11 years, 7 months ago (2009-04-30 16:52:49 UTC) #7
Lincoln
LGTM
11 years, 7 months ago (2009-04-30 17:17:25 UTC) #8
wtc
LGTM. Just some nits. http://codereview.chromium.org/100004/diff/1203/180 File net/base/sdch_manager.cc (right): http://codereview.chromium.org/100004/diff/1203/180#newcode525 Line 525: if (AllowLatencyExperiment(url)) Nit: you ...
11 years, 7 months ago (2009-04-30 18:19:25 UTC) #9
jar (doing other things)
I made all suggestions proposed by Wan Teh. Please diff with version 19 (where you ...
11 years, 7 months ago (2009-04-30 19:26:50 UTC) #10
wtc
LGTM. Remember to add load_flags.h to this CL. http://codereview.chromium.org/100004/diff/222/226 File net/base/sdch_filter.cc (right): http://codereview.chromium.org/100004/diff/222/226#newcode151 Line 151: ...
11 years, 7 months ago (2009-04-30 20:31:18 UTC) #11
Lincoln
11 years, 7 months ago (2009-04-30 20:42:38 UTC) #12
LGTM

http://codereview.chromium.org/100004/diff/222/226
File net/base/sdch_filter.cc (right):

http://codereview.chromium.org/100004/diff/222/226#newcode151
Line 151: DCHECK_EQ(0u, dest_buffer_excess_index_);
On 2009/04/30 20:31:18, wtc wrote:
> In several DCHECKs in this file, you are using 0u,
> which very few people use.  I would just use 0
> unless 0u is necessary for the code to compile.

I beg to differ.  Certain compilers will produce a warning about signed/unsigned
mismatch unless the U suffix is used.   For an example of code in which I have
had to take this approach in the past, please see:
http://open-vcdiff.googlecode.com/svn/trunk/src/rolling_hash_test.cc

Powered by Google App Engine
This is Rietveld 408576698