Currently BodyStream just enqueues things by creating a new Uint8Array: https://searchfox.org/mozilla-central/rev/7426a35738cd542b9488c7b67f4f6d21edfeda0a/dom/base/BodyStream.cpp#435 Instead, it should write into `[[byobRequest]]` view when available.
Bug 1811440 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Currently BodyStream just enqueues things by creating a new Uint8Array: https://searchfox.org/mozilla-central/rev/7426a35738cd542b9488c7b67f4f6d21edfeda0a/dom/base/BodyStream.cpp#435 Instead, it should write into `[[byobRequest]]` view when available to reduce copy. (The behavior won't be web-visible, it's more for better performance)
Currently BodyStream just enqueues things by creating a new Uint8Array: https://searchfox.org/mozilla-central/rev/7426a35738cd542b9488c7b67f4f6d21edfeda0a/dom/base/BodyStream.cpp#435 Instead, it should write into `[[byobRequest]]` view when available to reduce copy. The behavior won't be web-visible, it's more for better performance by skipping copy into a new Uint8Array and then again into byob buffer.