Make `String(::Memory)` copy
A more targeted fix of #54369 than #54372
Preserves the performance improvements added in #53962 by creating a new internal _unsafe_takestring!(v::Memory{UInt8}) function that does what String(::Memory{UInt8}) used to do.
bump
bump
bump
bump
bump
@jakobnissen thank you for reviewing this. I'd also like to get this in 1.11
I think it would be ideal if we could get @vtjnash to review this before merging.
@vtjnash Can you review this?
Bump @vtjnash
This is an important bug fix because the documentation in Julia 1.11 explicitly states that the String constructor will copy for all AbstractVectors{UInt8} except Vector{UInt8}.
Bump @vtjnash Can you review this?