libp2p / js-peer-id

peer-id implementation in JavaScript. Deprecated; use https://github.com/libp2p/js-libp2p-peer-id instead.
https://github.com/libp2p/js-libp2p-peer-id
MIT License
80 stars 44 forks source link

feat: cache b58 id #44

Closed dignifiedquire closed 7 years ago

dignifiedquire commented 7 years ago

While investigating slow performance in js-ipfs I discovered that there are too many calls to mh.toB58String. This is the start of reducing the number of those calls.

victorb commented 7 years ago

On a (maybe) related note, I had troubles with slow transfers between chrome and chrome, others work fine. https://github.com/ipfs/js-ipfs/issues/611