util: faster arrayToHash
authorJackson Tian <shyvo1987@gmail.com>
Sun, 22 Nov 2015 09:08:45 +0000 (17:08 +0800)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:31 +0000 (11:52 -0800)
commitf4414102edac3bd352fbc653dfe6220d617e4c35
treebd85f96f1210b2f5ed369cd32f17af9ad6af9326
parent9855fab05f66deccf6531c159ef38ae10a149cba
util: faster arrayToHash

The `util.format()` is used frequently, make the method faster
is better.

R-URL: https://github.com/nodejs/node/pull/3964
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Makefile
benchmark/util/inspect.js [new file with mode: 0644]
lib/util.js