fixup! fixup! perf: use strings.Builder

This commit is contained in:
Philippe Antoine 2025-11-06 17:21:36 +01:00
parent c9dd414f3c
commit ef9eeba34d

View file

@ -128,7 +128,7 @@ func (path DerivationPath) String() string {
component -= 0x80000000
hardened = true
}
result = fmt.Sprintf("%s/%d", result, component)
resultSb124.WriteString(fmt.Sprintf("/%d", component))
if hardened {
resultSb124.WriteString("'")
}