]> zoso.dev Git - buffer.git/commit
Use lookup table for faster hex encoding
authorKirill Fomichev <fanatid@ya.ru>
Wed, 11 Sep 2019 15:58:51 +0000 (18:58 +0300)
committerKirill Fomichev <fanatid@ya.ru>
Wed, 11 Sep 2019 15:58:51 +0000 (18:58 +0300)
commit88e321e20920e4fa7897d01e22ce79f9a82b2605
treede16165ba029ca73c19e329a1f521931d5e1c7e8
parentb3dbaab202e043f7ecfb4cca9d594d60b0d80381
Use lookup table for faster hex encoding

Lookup table faster ~9-12 times than toString('hex') for each byte.
See https://github.com/feross/buffer/issues/219
index.js