<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">This is purely a backend change. You can use it in an experiment if you need to, but this doesn't change direction for add-ons.</div><div dir="ltr"><br></div><div dir="ltr">Philipp </div><div dir="ltr"><br><blockquote type="cite">On 29. Aug 2020, at 7:05 PM, neandr <neandr@gmx.de> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Thanks for forwarding and informing the TB community.</p>
<p>There have been discussions recently about accessing the file
system to r/w data (eg. preferences and/or addon relevant data
sets).<br>
What is the 'new' perspective for that using the <span>`IOUtils`with
TB ... and if available with TB what are the implementation and
release plans for using it with addons also?</span></p>
<p><span><br>
</span></p>
<div class="moz-cite-prefix">Am 29.08.20 um 07:51 schrieb Philipp
Kewisch:<br>
</div>
<blockquote type="cite" cite="mid:B5CC7A36-3A39-42CE-A1D7-63D4FF07C9DD@thunderbird.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<div dir="ltr">Begin forwarded message:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr"><b>From:</b> David Teller
<a class="moz-txt-link-rfc2396E" href="mailto:dteller@mozilla.com"><dteller@mozilla.com></a><br>
<b>Date:</b> 28. August 2020 at 4:50:39 PM CEST<br>
<b>To:</b> Keefer Rourke <a class="moz-txt-link-rfc2396E" href="mailto:krourke@mozilla.com"><krourke@mozilla.com></a>,
<a class="moz-txt-link-abbreviated" href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<b>Subject:</b> <b>Re: New changes for File APIs in the
Firefox Front-end</b><br>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><span>Ten years already? Gasp, OS.File was one
of my first serious</span><br>
<span>contributions to Firefox :)</span><br>
<span></span><br>
<span>But yeah, it now needs to go. The replacement looks much
better, thanks</span><br>
<span>a lot for taking care of that!</span><br>
<span></span><br>
<span>Cheers,</span><br>
<span> David</span><br>
<span></span><br>
<span>On 28/08/2020 15:59, Keefer Rourke wrote:</span><br>
<blockquote type="cite"><span>Hi folks,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>I'm Keefer — this summer I had
the amazing opportunity to intern with the Firefox
Performance Engineering team. To finish off my internship,
I'm happy to announce some new changes with file I/O in
the Firefox front-end.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Up until this point, most file
I/O in chrome code has been done using the `OS.File` API
[1]. This API has suited our needs for many years (10!),
but the implementation raises some concerns about start-up
performance, cache-contention, and memory usage (see bug
1231711 for more info).</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>This summer, a significant
amount of work has been done to implement a new file API
written in C++ which is not subject to these concerns. The
new API, called `IOUtils`, is now available in the latest
nightlies, and it is slated to replace `OS.File`. Work is
ongoing to replace `OS.File` usages with analogous calls
to `IOUtils` (see bug 986145), and new usages of `OS.File`
should not be introduced. The new API is very similar to
`OS.File`, but has some important ergonomic and
performance improvements. You can find a migration guide
here [2].</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>TL;DR if you need to read,
write, or otherwise manipulate files from privileged
JavaScript, please do so using methods on the new
`IOUtils` global.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Questions? Check out the FAQ in
the migration guide, or head over to the #perf channel on
Matrix and we'll be happy to help out :)</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Cheers,</span><br>
</blockquote>
<blockquote type="cite"><span>Keefer</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>[1]:
<a class="moz-txt-link-freetext" href="https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/OSFile.jsm">https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/OSFile.jsm</a></span><br>
</blockquote>
<blockquote type="cite"><span>[2]:
<a class="moz-txt-link-freetext" href="https://docs.google.com/document/d/10_3dg0azLREP76esG5yWX4O8z4MJ0VUsplfPaTqhPxc/view">https://docs.google.com/document/d/10_3dg0azLREP76esG5yWX4O8z4MJ0VUsplfPaTqhPxc/view</a></span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>_______________________________________________</span><br>
</blockquote>
<blockquote type="cite"><span>firefox-dev mailing list</span><br>
</blockquote>
<blockquote type="cite"><span><a class="moz-txt-link-abbreviated" href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a></span><br>
</blockquote>
<blockquote type="cite"><span><a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/firefox-dev">https://mail.mozilla.org/listinfo/firefox-dev</a></span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<span>_______________________________________________</span><br>
<span>firefox-dev mailing list</span><br>
<span><a class="moz-txt-link-abbreviated" href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a></span><br>
<span><a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/firefox-dev">https://mail.mozilla.org/listinfo/firefox-dev</a></span><br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Maildev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Maildev@lists.thunderbird.net">Maildev@lists.thunderbird.net</a>
<a class="moz-txt-link-freetext" href="http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net">http://lists.thunderbird.net/mailman/listinfo/maildev_lists.thunderbird.net</a>
</pre>
</blockquote>
</div></blockquote></body></html>