Closed Youssef1313 closed 6 months ago
Trying to implement this fix, I found out that I need to change the signature of TryLoadSvgDataAsync
which is public. So probably this would be postponed to Uno 6, unless someone sees a clever way of doing it without breaking the public API.
There is no enough evidence that it's really an issue in practice. Closing out
What would you like to be added
Looking at the code:
Two optimizations come to mind:
stream
is already MemoryStream, and if so, skip creating a new MemoryStream and copying to it.memoryStream.ToArray()
. There are two ways that come in mind:byte[]
to ImageData, give it the MemoryStream. Note that:TryGetBuffer
, which will reuse the internal array instead of creating a new array. I think this option makes more sense.Why is this needed
No response
For which platform
No response
Anything else we need to know?
No response