GtkSerializer should use transcoding stream #22618
Unanswered
Mrnikbobjeff
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The GtkSerializer does implement transcoding inefficiently. Instead of reading the entire value into memory, one could simply peek the stream for the fast path instead of reading it in one go. Furthermore, instead of materializing the result before calling the deserializer one could use the Encoding.CreateTranscodingStream method to have a stream which automatically encodes the input to UTF8.
Recreation of issue with correct GH account
Public API Changes
None
Intended Use-Case
Allocation reduction
Beta Was this translation helpful? Give feedback.
All reactions