Skip to content

Commit

Permalink
timing
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Feb 19, 2025
1 parent 6e3a276 commit 086c4ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workers/image.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ const imageWorker = {
await readChunks(reader, imageSize, {
onChunk: async (chunk) => {
await writable?.write(chunk)
console.time('sha update')
shaObj.update(chunk)
console.timeEnd('sha update')
},
onProgress,
})
Expand Down

0 comments on commit 086c4ef

Please sign in to comment.