Use PrefetchVirtualMemory in nsZipArchive::BuildFileList when supported, instead of ReadAhead
Categories
(Core :: Networking: JAR, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Comment 1•6 years ago
|
||
I'd suggest gating this on the successful resolution of PrefetchVirtualMemory, instead of using IsWin8OrLater.
Assignee | ||
Comment 2•6 years ago
|
||
instead of ReadAhead, which does active reading on Windows.
The PrefetchVirtualMemory is a system call that is new to Windows 8.
Back when the readahead code for jar was added, in bug 810151, Windows 8
was still fresh out of the oven. 6 years later, we can do a runtime
check and use the PrefetchVirtualMemory function.
One downside is that the IOInterposer doesn't know about it (but it
doesn't know about madvise on other platforms anyways).
Assignee | ||
Comment 3•6 years ago
|
||
I verified this works as expected, but that required editing omni.ja manually, because it turns out for some reason, they don't have readahead information at the moment. Filed bug 1529894.
Comment 4•6 years ago
|
||
P1 given Mike is already working on this
Comment 6•6 years ago
|
||
bugherder |
Description
•