Closed Bug 764019 Opened 12 years ago Closed 12 years ago

Remove our prefetch when READOPS=0 on windows

Categories

(Core :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: taras.mozilla, Assigned: glandium)

References

Details

Attachments

(1 file, 2 obsolete files)

bug 757215 shows that my heuristic a slight loss. We should focus any profiling/optimization on the case where we know prefetch is nuked for us, ie bug 692255.
I think the experiment we were talking about yesterday would be a separate bug.
Attachment #632586 - Flags: review?(taras.mozilla)
Need to leave ioCounters there because it's used for *GLUESTARTUP_READ_OPS and *GLUESTARTUP_READ_TRANSFER.
Attachment #632636 - Flags: review?(taras.mozilla)
Attachment #632586 - Attachment is obsolete: true
Attachment #632586 - Flags: review?(taras.mozilla)
Comment on attachment 632636 [details] [diff] [review]
Only rely on the maintenance service to enable preload on Windows

Review of attachment 632636 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/app/nsBrowserApp.cpp
@@ -234,5 @@
>    if (IsPrefetchDisabledViaService()) {
>      preloadReason = PRELOAD_SERVICE;
> -  } else if ((gotCounters && !ioCounters.ReadOperationCount)) {
> -    preloadReason = PRELOAD_IOCOUNT;
> -  }

You need to keep this closing brace otherwise it won't compile.
(In reply to Brian R. Bondy [:bbondy] from comment #3)
> @@ -234,5 @@
> >    if (IsPrefetchDisabledViaService()) {
> >      preloadReason = PRELOAD_SERVICE;
> > -  } else if ((gotCounters && !ioCounters.ReadOperationCount)) {
> > -    preloadReason = PRELOAD_IOCOUNT;
> > -  }
> 
> You need to keep this closing brace otherwise it won't compile.

Yeah, try just told me so :)
Attachment #632667 - Flags: review?(taras.mozilla)
Attachment #632636 - Attachment is obsolete: true
Attachment #632636 - Flags: review?(taras.mozilla)
Attachment #632667 - Flags: review?(taras.mozilla) → review+
Blocks: 764905
https://hg.mozilla.org/mozilla-central/rev/da76a072b2b0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: