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

Issue 2096005: page cycler: Use buffer-cache priming code on all systems. (Closed)

Created:
10 years, 7 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

page cycler: Use buffer-cache priming code on all systems. I noticed that the first time I run the page cycler the test numbers are worse, probably because the test pages are not in cache. We already have this code on Mac and I don't see why it shouldn't apply to all systems. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47650

Patch Set 1 #

Total comments: 3

Patch Set 2 : simpler #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -24 lines) Patch
M base/file_util.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/file_util.cc View 1 chunk +2 lines, -1 line 2 comments Download
M chrome/test/page_cycler/page_cycler_test.cc View 1 6 chunks +14 lines, -23 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Martin
10 years, 7 months ago (2010-05-17 15:14:59 UTC) #1
jorlow
Seems reasonable to me, but I don't think I have the authority to LGTM this.
10 years, 7 months ago (2010-05-17 15:28:44 UTC) #2
Mark Mentovai
http://codereview.chromium.org/2096005/diff/1/2 File chrome/test/page_cycler/page_cycler_test.cc (right): http://codereview.chromium.org/2096005/diff/1/2#newcode24 chrome/test/page_cycler/page_cycler_test.cc:24: #include <errno.h> I don’t see errno used in this ...
10 years, 7 months ago (2010-05-17 15:53:06 UTC) #3
Evan Martin
On 2010/05/17 15:53:06, Mark Mentovai wrote: Hey, shouldn't you have caught these in the initial ...
10 years, 7 months ago (2010-05-17 15:57:02 UTC) #4
Mark Mentovai
Evan wrote: > Hey, shouldn't you have caught these in the initial review? :P I ...
10 years, 7 months ago (2010-05-17 16:01:10 UTC) #5
Evan Martin
Here's a new cross-platform implementation.
10 years, 7 months ago (2010-05-18 12:59:51 UTC) #6
Evan Martin
Ping.
10 years, 7 months ago (2010-05-19 09:27:55 UTC) #7
Evan Martin
+jochen, who is in my time zone :)
10 years, 7 months ago (2010-05-19 10:37:19 UTC) #8
jorlow
LGTM http://codereview.chromium.org/2096005/diff/7001/8001 File base/file_util.cc (right): http://codereview.chromium.org/2096005/diff/7001/8001#newcode189 base/file_util.cc:189: if (contents) This feels dirty to me. I ...
10 years, 7 months ago (2010-05-19 10:41:49 UTC) #9
Mark Mentovai
10 years, 7 months ago (2010-05-19 14:00:27 UTC) #10
LGTM.

(Sorry, I was out yesterday.)

http://codereview.chromium.org/2096005/diff/7001/8001
File base/file_util.cc (right):

http://codereview.chromium.org/2096005/diff/7001/8001#newcode189
base/file_util.cc:189: if (contents)
This does not feel dirty to me at all.

Powered by Google App Engine
This is Rietveld 408576698