Skip to content
Snippets Groups Projects
Commit f1830d74 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

binary: Directly copy ShortByteString to buffer rather than go via ByteString

This avoids allocating an intermediate bytestring. I just noticed on a
profile that `putFS` was allocating, and it seemed strange to me why
since it should just copy the contents of the FastString into the
already allocated buffer. It turned out we were going indirectly via a
ByteString.

Fixes #25861
parent 0cb1db92
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment