sse4_crc32
Advanced tools
Comparing version 1.1.3 to 2.0.0
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "1.1.3", | ||
"version": "2.0.0", | ||
"author": "Anand Suresh <anandsuresh@gmail.com> (https://github.com/anandsuresh)", | ||
@@ -34,3 +34,4 @@ "licenses": [ | ||
"bindings": "~1.1.1", | ||
"nan": "~0.6.0" | ||
"nan": "~0.6.0", | ||
"node-gyp": "~0.12.2" | ||
}, | ||
@@ -37,0 +38,0 @@ "devDependencies": { |
# SSE4-CRC32 | ||
Starting with the Nehalam series, Intel processors feature the Streaming SIMD Extensions instruction set which provide a | ||
hardware-accelerated version of the CRC32 algorithm (Castagnoli variant). This library uses the Intel SSE 4.2 | ||
Starting with the Nehalam series, Intel processors feature the Streaming SIMD | ||
Extensions instruction set which provide a hardware-accelerated version of | ||
the CRC32 algorithm (Castagnoli variant). This library uses the Intel SSE 4.2 | ||
instruction set to provide a fast CRC-32 algorithm. | ||
@@ -10,3 +11,4 @@ | ||
- Intel Streaming SIMD Extensions 4.2 based hardware accelerated CRC 32 calculation | ||
- Intel Streaming SIMD Extensions 4.2 based hardware accelerated CRC 32 | ||
calculation | ||
- Progressive CRC32 calculation | ||
@@ -38,3 +40,4 @@ - Supports Node.js buffers | ||
As you can see, the SSE4_CRC32 library is about **31.74** times faster than the pure JS library! | ||
The results clearly show that the SSE4_CRC32 library is about **31.74** times | ||
faster than the pure JS library! | ||
@@ -63,3 +66,3 @@ | ||
var SSE4CRC32 = new SSE4CRC32.CRC32(), | ||
var sse4crc32 = new SSE4CRC32.CRC32(), | ||
my_inputs = [ "some string", new Buffer("a buffer"), "yet another string", new Buffer("yet another buffer") ], | ||
@@ -69,6 +72,6 @@ crc; | ||
my_inputs.forEach(function (string) { | ||
crc = SSE4CRC32.update(string); | ||
crc = sse4crc32.update(string); | ||
}); | ||
crc = SSE4CRC32.crc(); // The .crc() method can also be used to get the final CRC | ||
crc = sse4crc32.crc(); // The .crc() method can also be used to get the final CRC | ||
@@ -75,0 +78,0 @@ Also see the example code in the [examples](https://github.com/anandsuresh/sse4_crc32/tree/master/examples) |
@@ -9,11 +9,11 @@ var SSE4CRC32 = require("../sse4_crc32"), | ||
input : "SSE4-CRC32: A hardware accelerated CRC32 implementation for node.js", | ||
output: 478148685 | ||
output: 3039989317 | ||
}, | ||
{ | ||
input : new Buffer("SSE4-CRC32: A hardware accelerated CRC32 implementation for node.js"), | ||
output: 478148685 | ||
output: 3039989317 | ||
}, | ||
{ | ||
input : [ "SSE4-CRC32: ", "A hardware accelerated CRC32 implementation ", "for node.js" ], | ||
output: 478148685 | ||
output: 3039989317 | ||
} | ||
@@ -20,0 +20,0 @@ ]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29154
15
89
3
+ Addednode-gyp@~0.12.2
+ Addedabbrev@1.1.1(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi@0.3.1(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedblock-stream@0.0.9(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfstream@0.1.31(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@3.2.117.2.3(transitive)
+ Addedgraceful-fs@2.0.33.0.12(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@0.3.00.4.03.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednatives@1.1.6(transitive)
+ Addednode-gyp@0.12.2(transitive)
+ Addednopt@2.2.1(transitive)
+ Addednpmlog@0.1.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.9.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@2.2.1(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtar@0.1.20(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwrappy@1.0.2(transitive)