Closed Bug 770501 Opened 12 years ago Closed 6 years ago

[OS.File] Linux/Android optimizations

Categories

(Core :: Networking: File, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Yoric, Unassigned)

References

Details

(Whiteboard: [necko-backlog])

Linux kernels offer the following functions: - dirfd, fdopendir; - openat, statat, unlinkat, etc. Whenever they can be used, they can be much faster than open, stat, unlink, etc. We should expose them and make use of them.
We might wish to implement the following functions in the front-end: - File.prototype.linuxDirectoryIterator (behaves as |new DirectoryIterator|, but from a file descriptor, using |fdopendir|); - File.prototype.linuxOpenAt (behaves as |File.open|, but for a file in |this|, and only if |this| is a directory); - File.prototype.linuxInfoAt (behaves as |File.info|, but for a file in |this|, and only if |this| is a directory); - File.prototype.linuxRemoveAt (behaves as |File.remove|, but for a file in |this|, and only if |this| is a directory).
Blocks: OS.File
No longer depends on: 770538
Whiteboard: [necko-backlog]
Priority: -- → P1
Priority: P1 → P3
Mass closing as we are no longer working on b2g/firefox os.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Mass closing as we are no longer working on b2g/firefox os.
Sylvestre, this bug was also about Linux and Android. Most of the optimizations have been done already, but I don't think it is worth closing it just yet :)
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Summary: [OS.File] Linux/Android/B2G optimizations → [OS.File] Linux/Android optimizations
David, would you mind explaining what hasn't been implemented? Thanks
Flags: needinfo?(dteller)
Actually, much of https://bugzilla.mozilla.org/show_bug.cgi?id=770501#c1 hasn't been implemented. I realize that we don't really care about I/O performance these days, so we might as well close the bug, as you did.
Flags: needinfo?(dteller)
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.