<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node-new.git/lib/internal/encoding.js, branch main</title>
<subtitle>github.com: nodejs/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/'/>
<entry>
<title>src: make AliasedBuffers in the binding data weak</title>
<updated>2023-04-20T03:28:35+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2023-04-20T03:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=b68cedd4d85157914944b1672310c6023dc8635d'/>
<id>b68cedd4d85157914944b1672310c6023dc8635d</id>
<content type='text'>
The binding data holds references to the AliasedBuffers directly
from their wrappers which already ensures that the AliasedBuffers
won't be accessed when the wrappers are GC'ed. So we can just
make the global references to the AliasedBuffers weak. This way
we can simply deserialize the typed arrays when deserialize the
binding data and avoid the extra Object::Set() calls. It also
eliminates the caveat in the JS land where aliased buffers must
be dynamically read from the binding.

PR-URL: https://github.com/nodejs/node/pull/47354
Refs: https://github.com/nodejs/node/issues/47353
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The binding data holds references to the AliasedBuffers directly
from their wrappers which already ensures that the AliasedBuffers
won't be accessed when the wrappers are GC'ed. So we can just
make the global references to the AliasedBuffers weak. This way
we can simply deserialize the typed arrays when deserialize the
binding data and avoid the extra Object::Set() calls. It also
eliminates the caveat in the JS land where aliased buffers must
be dynamically read from the binding.

PR-URL: https://github.com/nodejs/node/pull/47354
Refs: https://github.com/nodejs/node/issues/47353
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>src: use AliasedUint32Array for encodeInto results</title>
<updated>2023-03-07T21:54:41+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2023-02-11T18:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=e5933c83257b2ed4b2e71998837fd2da2b548a16'/>
<id>e5933c83257b2ed4b2e71998837fd2da2b548a16</id>
<content type='text'>
Getting the buffer from a TypedArray created from the JS land
incurs a copy. For encodeInto() results we can just use an
AliasedArray and let the binding always own the store.

PR-URL: https://github.com/nodejs/node/pull/46658
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Getting the buffer from a TypedArray created from the JS land
incurs a copy. For encodeInto() results we can just use an
AliasedArray and let the binding always own the store.

PR-URL: https://github.com/nodejs/node/pull/46658
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>src: move encoding bindings to a new binding</title>
<updated>2023-03-07T21:45:42+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2023-02-11T17:54:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=25c21868b8d16392835454f57bb465157661f199'/>
<id>25c21868b8d16392835454f57bb465157661f199</id>
<content type='text'>
Move the bindings used by TextEncoder to a new binding for
more self-contained code.

PR-URL: https://github.com/nodejs/node/pull/46658
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the bindings used by TextEncoder to a new binding for
more self-contained code.

PR-URL: https://github.com/nodejs/node/pull/46658
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: add trailing commas to more internal files</title>
<updated>2023-02-26T10:34:02+00:00</updated>
<author>
<name>Antoine du Hamel</name>
<email>duhamelantoine1995@gmail.com</email>
</author>
<published>2023-02-26T10:34:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=5f76836277ac915cb8c85d4a5c73185bf1024c72'/>
<id>5f76836277ac915cb8c85d4a5c73185bf1024c72</id>
<content type='text'>

PR-URL: https://github.com/nodejs/node/pull/46811
Reviewed-By: Moshe Atlow &lt;moshe@atlow.co.il&gt;
Reviewed-By: Debadree Chatterjee &lt;debadree333@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Trivikram Kamat &lt;trivikr.dev@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

PR-URL: https://github.com/nodejs/node/pull/46811
Reviewed-By: Moshe Atlow &lt;moshe@atlow.co.il&gt;
Reviewed-By: Debadree Chatterjee &lt;debadree333@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Trivikram Kamat &lt;trivikr.dev@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>tools: add `prefer-proto` rule</title>
<updated>2023-01-10T05:38:36+00:00</updated>
<author>
<name>Jordan Harband</name>
<email>ljharb@gmail.com</email>
</author>
<published>2023-01-10T05:38:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=757c10414776b6f035ced453599527a841f47d6e'/>
<id>757c10414776b6f035ced453599527a841f47d6e</id>
<content type='text'>
fixup: add support for `Object.create(null)`

fixup: extend to any 1-argument Object.create call

fixup: add tests
PR-URL: https://github.com/nodejs/node/pull/46083
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixup: add support for `Object.create(null)`

fixup: extend to any 1-argument Object.create call

fixup: add tests
PR-URL: https://github.com/nodejs/node/pull/46083
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>util: add fast path for text-decoder fatal flag</title>
<updated>2022-12-22T20:22:28+00:00</updated>
<author>
<name>Yagiz Nizipli</name>
<email>yagiz@nizipli.com</email>
</author>
<published>2022-12-15T23:11:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=2ef13b8fb638d9d7b815296dfbf6a631868ce001'/>
<id>2ef13b8fb638d9d7b815296dfbf6a631868ce001</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45803
Reviewed-By: Robert Nagy &lt;ronagy@icloud.com&gt;
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45803
Reviewed-By: Robert Nagy &lt;ronagy@icloud.com&gt;
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Michael Dawson &lt;midawson@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: remove unnecessary lazy loading in `internal/encoding`</title>
<updated>2022-12-12T15:17:53+00:00</updated>
<author>
<name>Antoine du Hamel</name>
<email>duhamelantoine1995@gmail.com</email>
</author>
<published>2022-12-12T15:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=aa2ca81f6062738d787737e45c26fa958a0a63c7'/>
<id>aa2ca81f6062738d787737e45c26fa958a0a63c7</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45810
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45810
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>util: add fast path for utf8 encoding</title>
<updated>2022-11-12T21:31:44+00:00</updated>
<author>
<name>Yagiz Nizipli</name>
<email>yagiz@nizipli.com</email>
</author>
<published>2022-11-12T21:31:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=4ac830effdf19b7e9506becbd1aa384e7ab72cde'/>
<id>4ac830effdf19b7e9506becbd1aa384e7ab72cde</id>
<content type='text'>
Co-authored-by: Anna Henningsen &lt;anna@addaleax.net&gt;
PR-URL: https://github.com/nodejs/node/pull/45412
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
Reviewed-By: Santiago Gimeno &lt;santiago.gimeno@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Anna Henningsen &lt;anna@addaleax.net&gt;
PR-URL: https://github.com/nodejs/node/pull/45412
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
Reviewed-By: Santiago Gimeno &lt;santiago.gimeno@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>util: improve text decoder performance</title>
<updated>2022-11-12T01:48:29+00:00</updated>
<author>
<name>Yagiz Nizipli</name>
<email>yagiz@nizipli.com</email>
</author>
<published>2022-11-09T14:18:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=ca3ed363ffefa4819c1414aff7ffca34b53a7b95'/>
<id>ca3ed363ffefa4819c1414aff7ffca34b53a7b95</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45388
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Santiago Gimeno &lt;santiago.gimeno@gmail.com&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45388
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Santiago Gimeno &lt;santiago.gimeno@gmail.com&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util: improve text-decoder performance</title>
<updated>2022-11-09T14:17:31+00:00</updated>
<author>
<name>Yagiz Nizipli</name>
<email>yagiz@nizipli.com</email>
</author>
<published>2022-11-07T14:07:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=aed55df74b448438a9b786f0a5d52ad629974472'/>
<id>aed55df74b448438a9b786f0a5d52ad629974472</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/45363
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/45363
Reviewed-By: Anna Henningsen &lt;anna@addaleax.net&gt;
Reviewed-By: Rich Trott &lt;rtrott@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
