I don't know of any performance problems for reading files with OS.File at the moment. Actually, I benchmarked it and we are 2x-5x faster than NetUtil at reading + decoding files, these days.
Cheers, David On 29/04/14 17:22, Nathan Froyd wrote: > ----- Original Message ----- >> The current best practice for file I/O in privileged JS is OS.File. It >> has mechanisms for doing encoding conversion and compressing data. >> That there is some b2g code using NetUtil/XPCOM instead is a bug, and >> probably was caused by the relevant code being written prior to the >> existence of OS.File (or it's doing something that OS.File doesn't >> support, but I think that's unlikely now). > > Sometimes it's a deliberate decision because OS.File has performance > problems, see e.g. bug 981085. > > (The OS.File performance problems are of course bugs in their own right, but > sometimes it's not so easy to sort those out.) > > -Nathan > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform