Closed Bug 920187 Opened 12 years ago Closed 2 years ago

Deprecate and get rid of FileUtils.getFile()

Categories

(Toolkit Graveyard :: IOUtils and PathUtils, task)

Tracking

(Performance Impact:low, firefox116 fixed)

RESOLVED FIXED
116 Branch
Performance Impact low
Tracking Status
firefox116 --- fixed

People

(Reporter: Yoric, Assigned: beth)

References

Details

(Keywords: main-thread-io, perf, perf:responsiveness)

Attachments

(1 file)

FileUtils.getFile() calls FileUtils.getDir(..., ..., true), which performs main thread I/O. We should root out calls to this method, mark it deprecated, and at some unspecified point in the future, get rid of it.
Depends on: 1391576
Whiteboard: [qf]
Whiteboard: [qf] → [qf:p3]
Keywords: perf

Reinserting into the qf triage queue since this is not under a performance pillar.

Whiteboard: [qf:p3] → [qf]

I don't see any references to ``FileUtils.getFile()` in the code base.
Are we sure this is still relevant?

We'll call this qf:p3:responsiveness. It would be good to get profiles which demonstrate whether how much impact these IO's have, as they're in the parent process.

Whiteboard: [qf] → [qf:p3:responsiveness]

For what it's worth, the duration of a blocking file I/O is not bounded. I have had Telemetry of cases (not of this specific I/O) that last several seconds doing trivial I/O (e.g. opening a file or closing it), with Firefox entirely blocked by the I/O.

Depends on: 1652645

IOUtils and PathUtils offers async alternatives

Depends on: 1745361
No longer depends on: 1745361
Severity: normal → --
No longer depends on: 1652645
See Also: → 1652645
Component: General → OS.File
Summary: Deprecate and get rid of FileUtils.getFile() → [meta] Deprecate and get rid of FileUtils.getFile()
Depends on: 1747461
Depends on: 1747463
Depends on: 1747464
Depends on: 1747466
Depends on: 1747467
Depends on: 1747468
Depends on: 1747469
Depends on: 1747470
Summary: [meta] Deprecate and get rid of FileUtils.getFile() → Deprecate and get rid of FileUtils.getFile()
Depends on: 1747471
Depends on: 1747472
Depends on: 1747473
Depends on: 1751141
Performance Impact: --- → P3
Whiteboard: [qf:p3:responsiveness]
Depends on: 1757957
Type: defect → task
No longer depends on: 1751141
Component: OS.File → IOUtils and PathUtils
Assignee: nobody → brennie
Status: NEW → ASSIGNED
Depends on: 1838874

Backed out for as requested by dev for potential test failures.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: