mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25: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. :^)