You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebuilding an (Electron) application incrementally in .NET using the strangler pattern, I have the need to load a very large serialized object (JSON, >35MB) into .NET. I've noticed that it kinda-breaks when I load such a large string in .NET at once (JSExport).
For this reason I've now chunked this string into 1MB strings, at the .NET side I collect this via a StreamWriter, and finally deserialize it using JsonSerializer.
I wonder if there are better approaches, like serializing it to an [Shared]ArrayBuffer and either pass that directly to .NET or construct an TypedArray like UInt8Array and pass that to .NET? Any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Rebuilding an (Electron) application incrementally in .NET using the strangler pattern, I have the need to load a very large serialized object (JSON, >35MB) into .NET. I've noticed that it kinda-breaks when I load such a large string in .NET at once (
JSExport
).For this reason I've now chunked this string into 1MB strings, at the .NET side I collect this via a
StreamWriter
, and finally deserialize it usingJsonSerializer
.I wonder if there are better approaches, like serializing it to an
[Shared]ArrayBuffer
and either pass that directly to .NET or construct anTypedArray
likeUInt8Array
and pass that to .NET? Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions