[Pkg-javascript-commits] [node-sha.js] 77/237: this is twice as fast! turns out creating DataViews is quite slow! /cc @feross

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit 3ba9a1fe2c33cc4e88ff953ba5c5544d4be311d1
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Mon Jan 6 09:16:29 2014 +0700

    this is twice as fast! turns out creating DataViews is quite slow! /cc @feross
---
 sha256.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sha256.js b/sha256.js
index 5f1163b..6a62568 100644
--- a/sha256.js
+++ b/sha256.js
@@ -113,7 +113,7 @@ Sha256.prototype._update = function(m) {
   var l = this._len
   var HASH = this._dvH
   var W = this._w
-  var M = new DataView(m.buffer || m);
+  var M = this._dv //M//new DataView(m.buffer || m);
   var a, b, c, d, e, f, g, h, i, j;
   var _a, _b, _c, _d, _e, _f, _g, _h
   var T1, T2;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list