Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
ByteBufferUtil.bytesToHex() is unnecessarily slow - it doesn't pre-size the StringBuilder (so several re-sizes will be needed behind the scenes) and it makes quite a few method calls per byte.
(OK, this may be a premature optimisation, but I couldn't resist, and it's a small change)
Will attach patch shortly that speeds it up by about x3, plus benchmarking test.