dlech/SshAgentLib

ToHexString() is very slow

mehrdadn opened this issue · 0 comments

Hi! It seems ToHexDigits is extremely slow, as it allocates a new string for every byte.

I would suggest just replacing the body with the following, which is equivalent:

return BitConverter.ToString(bytes).ToLowerInvariant().Replace("-", delimeter);

Thank you!