Ah right, I had forgotten about those issues. That's in fact exactly the code that Henri was looking at. XHR would perhaps be better than the XPCOM IO if it works, but I don't think anyone's done that investigation.
Gavin On Tue, Apr 29, 2014 at 11:22 AM, Nathan Froyd <froy...@mozilla.com> 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