Browse Source
We were using `tal_fmt` to truncate off the last byte of the response (newline), which required an allocation, a call to `vsnprintf` and a copy of the block contents. This being >2MB in size on mainnet was rather expensive. We now just signal the end of the string by overwriting the trailing newline, and stealing directly onto the result.bump-pyln-proto
Christian Decker
5 years ago
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue