assert: typed array deepequal performance fix
authorClaudio Rodriguez <cjrodr@yahoo.com>
Thu, 17 Dec 2015 13:05:45 +0000 (10:05 -0300)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:32 +0000 (11:52 -0800)
commit901172a783dc02bff7d272d07463594be96be4b8
treeb450cf064628ecb5fa51d12d2e7fc15bc9d94c4a
parent138d004ac0944fc1f2870e6d5024c95fda2b3878
assert: typed array deepequal performance fix

assert.deepEqual: when actual and expected are typed arrays,
wrap them in a new Buffer each to increase performance
significantly.

PR-URL: https://github.com/nodejs/node/pull/4330
Fixes: https://github.com/nodejs/node/issues/4294
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
benchmark/assert/deepequal-prims-and-objs-big-array.js [new file with mode: 0644]
benchmark/assert/deepequal-prims-and-objs-big-loop.js [new file with mode: 0644]
benchmark/assert/deepequal-typedarrays.js [new file with mode: 0644]
lib/assert.js
test/parallel/test-assert-typedarray-deepequal.js [new file with mode: 0644]