[SR-12126] String(decoding:as:) allocates if passed an ArraySlice<UInt8> #54561
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
performance
standard library
Area: Standard library umbrella
Attachment: Download
Additional Detail from JIRA
md5: c7940400704e1e3f7f98b4767867e9a0
Issue Description:
allocates (unless the
arraySlice
is the whole Array).Consider the following program
which when run as
prints
that's totally unnecessary and can be worked around with
The text was updated successfully, but these errors were encountered: