Skip to content

Conversation

zbjornson
Copy link
Contributor

buffer-crc32 is substantially slower than node-crc because it converts the CRC itself to and from a length-1 buffer on every update. In a benchmark with crc32stream.write(<a 2 MB buffer>) (single invocation of the CRC function), node-crc is 10 ms / 37% faster than buffer-crc32. In another benchmark writing a 1KB buffer 1000x, node-crc was 62% faster.

@ctalkington ctalkington merged commit 7c52dec into archiverjs:master Dec 28, 2016
@ctalkington
Copy link
Member

you should see this is now published as part of v1.0.1

@zbjornson zbjornson deleted the perf-unsigned branch February 16, 2017 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants