Open
Bug 1996197
Opened 4 months ago
Updated 3 months ago
Transfer vector malloc storage to typed array in Uint8Array.fromBase64
Categories
(Core :: JavaScript: Standard Library, enhancement, P3)
Core
JavaScript: Standard Library
Tracking
()
NEW
People
(Reporter: anba, Unassigned)
References
(Blocks 2 open bugs)
Details
Uint8Array.fromBase64 currently first allocates a Vector, decodes into that vector, and then allocates the result typed array, which performs another malloc allocation for the array buffer (ignoring for now the case when inline typed array elements can be used). It'd be more efficient to extract the malloc memory from the vector, possibly realloc to get rid of over-allocation, and then use the extracted memory for the array buffer.
Updated•4 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•