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

Issue 2893005: Change the default number of proxy resolver threads used for evaluating PAC s... (Closed)

Created:
10 years, 5 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Change the default number of proxy resolver threads used for evaluating PAC scripts from 1 to 4. Also adds a command line flag to override the default: --num-pac-threads=X BUG=11079 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52046

Patch Set 1 #

Patch Set 2 : comment fix #

Patch Set 3 : add missing file #

Total comments: 10

Patch Set 4 : Address wtc comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -7 lines) Patch
M chrome/browser/net/chrome_url_request_context.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
eroman
10 years, 5 months ago (2010-07-09 07:56:13 UTC) #1
wtc
LGTM. http://codereview.chromium.org/2893005/diff/11002/1008 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/2893005/diff/11002/1008#newcode99 chrome/browser/net/chrome_url_request_context.cc:99: size_t num_pac_threads = 0u; // Use default number ...
10 years, 5 months ago (2010-07-09 21:44:09 UTC) #2
eroman
10 years, 5 months ago (2010-07-09 22:02:48 UTC) #3
http://codereview.chromium.org/2893005/diff/11002/1008
File chrome/browser/net/chrome_url_request_context.cc (right):

http://codereview.chromium.org/2893005/diff/11002/1008#newcode99
chrome/browser/net/chrome_url_request_context.cc:99: size_t num_pac_threads =
0u;  // Use default number of threads.
On 2010/07/09 21:44:09, wtc wrote:
> Nit: I would just use 0 for unsigned constants except in those DCHECK_EQ
> templates that require exact type match.  Note that your own documentation
> of the function says "|0|",  too.

Done.

http://codereview.chromium.org/2893005/diff/11002/1013
File net/proxy/proxy_service.cc (right):

http://codereview.chromium.org/2893005/diff/11002/1013#newcode273
net/proxy/proxy_service.cc:273: num_pac_threads = 4u;
On 2010/07/09 21:44:09, wtc wrote:
> The 4 constant should be declared or defined in the header file or at the top
> of this file to make it easier to find.

Done.

http://codereview.chromium.org/2893005/diff/11002/1013#newcode304
net/proxy/proxy_service.cc:304: new ProxyConfigServiceFixed(pc), new
ProxyResolverNull, NULL);
On 2010/07/09 21:44:09, wtc wrote:
> Is this an unrelated change?  Just curious.

Restored to earlier format, this isn't related. Will address that issue in a
follow-up CL.

http://codereview.chromium.org/2893005/diff/11002/1014
File net/proxy/proxy_service.h (right):

http://codereview.chromium.org/2893005/diff/11002/1014#newcode146
net/proxy/proxy_service.h:146: // PAC script takes a while to run. This is a
particular problem when PAC
On 2010/07/09 21:44:09, wtc wrote:
> Nit: a particular problem => particularly a problem

Done.

http://codereview.chromium.org/2893005/diff/11002/1014#newcode151
net/proxy/proxy_service.h:151: //   (a) can cause compatibility issues for
scripts that rely on sideffects
On 2010/07/09 21:44:09, wtc wrote:
> Typo: sideffects => side effects

Done.

Powered by Google App Engine
This is Rietveld 408576698