Closed Bug 1363425 Opened 8 years ago Closed 7 years ago

_migrateFromRDF causes main thread IO during startup

Categories

(Firefox :: File Handling, defect, P2)

defect

Tracking

()

VERIFIED WORKSFORME
Performance Impact high

People

(Reporter: florian, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [fxperf])

We have bugs on file to remove all unneeded OS accesses as much as possible, but what is triggering the helper app service during startup in the first place?
Priority: -- → P2
It seems that fixing bug 1362401 will solve this.
Depends on: 1362401
Will it fix it, or just cause it to happen after startup (potentially when the user is trying to interact with the browser)?
(In reply to Florian Quèze [:florian] [:flo] from comment #4) > Will it fix it, or just cause it to happen after startup (potentially when > the user is trying to interact with the browser)? Just cause it to happen after startup. While we'll incur in the full migration cost once, main-thread I/O for "handlers.json" will be still required when nsIHandlerService is used. This is very difficult to fix because the content type handling determination is synchronous.
See Also: → 1357818, 1362564
Whiteboard: [qf]
Is this only going to happen once during migration?
Flags: needinfo?(paolo.mozmail)
Whiteboard: [qf] → [qf:investigate:p1]
(In reply to Andrew Overholt [:overholt] from comment #6) > Is this only going to happen once during migration? The major issues happen only once during migration when we read all the file types, but until bug 1362401 is fixed we may still have a little impact based on how the PDF file type is configured in the operating system.
Flags: needinfo?(paolo.mozmail)
Keywords: perf
(In reply to :Paolo Amadini from comment #5) > While we'll incur in the full > migration cost once, main-thread I/O for "handlers.json" will be still > required when nsIHandlerService is used Can we use OMT IO to initialize it on idle well after startup, avoiding main thread IO in the majority of cases?
Flags: needinfo?(paolo.mozmail)
It's feasible, in fact this is what we do for "logins.json". However, given that we still import data from "mimeTypes.rdf" when necessary, there may be race conditions to be aware of, so it may be non-trivial. This bug was originally filed for attempts to read the file type associations during startup. If these attempts are now fixed, I'm not sure of what is the impact of the main-thread I/O here. This will probably affect the first page load of a content type that we cannot handle internally.
Flags: needinfo?(paolo.mozmail)
Whiteboard: [qf:investigate:p1] → [qf:investigate:p1][fxperf]
(In reply to :Paolo Amadini from comment #9) > It's feasible, in fact this is what we do for "logins.json". However, given > that we still import data from "mimeTypes.rdf" when necessary, there may be > race conditions to be aware of, so it may be non-trivial. fwiw, mimetypes.rdf migration is gone now.
(In reply to Marco Bonardo [::mak] from comment #10) > (In reply to :Paolo Amadini from comment #9) > > It's feasible, in fact this is what we do for "logins.json". However, given > > that we still import data from "mimeTypes.rdf" when necessary, there may be > > race conditions to be aware of, so it may be non-trivial. > > fwiw, mimetypes.rdf migration is gone now. \o/
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Blocks: 474043
Status: RESOLVED → VERIFIED
Performance Impact: --- → P1
Whiteboard: [qf:investigate:p1][fxperf] → [fxperf]
You need to log in before you can comment on or make changes to this bug.