XmacsLabs / lolly

lolly: A user-friendly C++ library
https://xmacslabs.github.io/lolly/
GNU General Public License v3.0
10 stars 6 forks source link

[8_11] add binary_to_hexadecimal interface #335

Closed jingkaimori closed 4 months ago

jingkaimori commented 4 months ago

Performance

9x faster than legacy algorithm

relative ns/op op/s err% total benchmark
100.0% 741,626.67 1,348.39 0.6% 0.11 convert document to hexadecimal string, legacy
1,107.8% 66,947.70 14,937.03 1.0% 0.11 convert document to hexadecimal string, using binary_to_hexadecimal