-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
- The download of images from Azure is slow - takes about 2.5 min for 900MB system image (today 4.5m...)
- download/unpack in parallel (if both download and unpack take 4m, we have saved 4m)
- replace
js-shawithhash-wasm(unpack 10m -> 4m)- updating the sha256 hash for each chunk during unpack is slow - seems to take 6ms for every chunk
-
xz-decompressis slow - There may be overhead because for the XZ decompression and SHA calculation we transfer bytes from JS to WASM (and back for decompression)... Not sure yet how complex it is to write something to process everything on the WASM side.
- Moving the
QdlManagerto a web worker (instead of justImageWorker) may also help speed things up as it would move the flashing (which includes computations likeSparse.splitBlob) off of the main/render thread - Faster flashing of sparse images in
qdl.js(flashing from 2:30 to 1:50)- fast erase partition/sector
- skip chunks during flashing
- Stream images to flash while downloading (
qdl.jsneeds to accept aReadableStreamfor blob to flash)
You can generate perf traces in Chrome in the performance tab
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels