There are a lot of different ways to convert a byte array to a hex string. What is the fastest way?
There are possibly more.
There are a lot of different ways to convert a byte array to a hex string. What is the fastest way?
There are possibly more.
Testing over 100,000 iterations found:
All results from my own test system.
This is probably a surprise to no one very familiar with C and C++ but given the number of different approaches available for solving this problem, having a Q&A on the approach with the best performance could be useful for people less familiar with C/C++.