mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For ScalarTraits, a buffer was always created on the heap to which the scalar string value was written just to be copied to the output buffer again. In case the value already exists in a memory buffer it is way cheaper to avoid the heap allocation and copy it straight to the output buffer.
7.8 KiB
7.8 KiB