mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Move owned ArrayBuffer storage directly when transferring stream buffers instead of copying the bytes before detaching the source. WebAssembly memory continues to copy because its ArrayBuffer wraps externally-owned storage. Preserve the abrupt completion from DetachArrayBuffer before moving storage so non-transferable buffers, such as WebAssembly.Memory-backed views, still surface TypeError through stream operations instead of aborting. This saves ~130ms of main thread time when loading a YouTube video on my Linux computer. :^)
7 lines
227 B
Plaintext
7 lines
227 B
Plaintext
read() rejected with TypeError: true
|
|
Read buffer byteLength: 65536
|
|
enqueue() threw TypeError: true
|
|
Enqueue buffer byteLength: 65536
|
|
respondWithNewView() rejected with TypeError: true
|
|
RespondWithNewView buffer byteLength: 65536
|