----- 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