Closed p01 closed 3 years ago
Use IOBuffer.writeBytes method + a TypedArray view into the source data to write the whole line and avoid additional calls to IOBUffer's ensureAvailable and _updateLastWrittenByte methods
Oh... after running some benchmark encoding 350 PNGs from 256x256 to ~8000x4000 the initial implementation comes out faster. That will teach me 😛
Use IOBuffer.writeBytes method + a TypedArray view into the source data to write the whole line and avoid additional calls to IOBUffer's ensureAvailable and _updateLastWrittenByte methods