Closed
Bug 1361431
Opened 8 years ago
Closed 7 years ago
Telemetry causes Places to do periodic main thread IO
Categories
(Toolkit :: Places, enhancement, P4)
Toolkit
Places
Tracking
()
RESOLVED
WORKSFORME
Performance Impact | none |
People
(Reporter: mconley, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf, Whiteboard: [reserve-photon-performance])
Caught this in the profiler:
https://perfht.ml/2qxtwyG
Looks like we're stat-ing a file on the main thread.
http://searchfox.org/mozilla-central/rev/ae8c2e2354db652950fe0ec16983360c21857f2a/toolkit/components/places/PlacesDBUtils.jsm#900-906
There are a file other places in PlacesDBUtils.jsm where it looks like we're accessing the fileSize of various files. We should try to avoid those.
Reporter | ||
Updated•8 years ago
|
Blocks: photon-performance-triage
Updated•8 years ago
|
Flags: qe-verify?
Priority: -- → P2
Reporter | ||
Comment 1•8 years ago
|
||
This is _probably_ only on idle-daily, which I guess is the least-bad place to do this... ni'ing myself to make sure that's the case.
Flags: needinfo?(mconley)
Comment 2•8 years ago
|
||
we collect telemetry on the gather-telemetry topic, that is currently fired on idle-daily, but that will change with bug 1127907.
Most of the PlacesDBUtils code is old and ugly, it should be rewritten with modern async/await, Sqlite.jsm and OS.File.
Reporter | ||
Comment 3•8 years ago
|
||
As per comment 2 (and bug 1127907 comment 4).
Flags: needinfo?(mconley)
Updated•8 years ago
|
Blocks: photon-perf-jank
Updated•8 years ago
|
No longer blocks: photon-performance-triage
Updated•8 years ago
|
Whiteboard: [qf][photon-performance] → [qf-][photon-performance]
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Updated•8 years ago
|
Priority: P2 → P3
Whiteboard: [qf-][photon-performance] → [qf-][reserve-photon-performance]
Updated•7 years ago
|
Priority: P3 → P4
Comment 4•7 years ago
|
||
I fixed this in a recent refactoring using OS.File.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 5•7 years ago
|
||
For reference, that recent refactoring appears to have taken place in bug 1346554.
Updated•3 years ago
|
Performance Impact: --- → -
Whiteboard: [qf-][reserve-photon-performance] → [reserve-photon-performance]
You need to log in
before you can comment on or make changes to this bug.
Description
•