tsujio / webrtc-chord

An implementation of Chord, a protocol of Distributed Hash Table, using WebRTC.
MIT License
186 stars 15 forks source link

Replace Underscore.js with Lo-Dash #10

Closed jure closed 10 years ago

jure commented 10 years ago

Replaces Underscore with Lo-Dash because it is faster: http://lodash.com/benchmarks

_.isArguments, _.isDate, _.isFunction, _.isNumber, _.isObject, _.isRegExp: lodash.min x 872,359 ops/sec ±4.83% (80 runs sampled) underscore-min x 509,960 ops/sec ±0.68% (88 runs sampled) lodash.min is 64% faster.

_.map iterating an array: lodash.min x 2,035,892 ops/sec ±6.76% (85 runs sampled) underscore-min x 802,734 ops/sec ±0.96% (86 runs sampled) lodash.min is 140% faster.

And so on.

tsujio commented 10 years ago

Thank you for the pull request! I've merged it.

jure commented 10 years ago

Thanks!