Closed 0x53A closed 5 years ago
huh, good thing you have tests. It seems the type-based caching doesn't work with struct unions, because all cases share one type.
Same for union cases without fields.
Ok locally tests are green and my use case is still fast:
Mind blown by these numbers :rocket: really awesome work @0x53A ❤️
Updated and published all (server side) packages, should be available soon on nuget :smile:
Thanks! I updated my app:
Now it is 44% processing, 54% serialization. Total time is maybe a second or so.
This is really good - for reference, this loads about a days worth of data.
And I think this is as good as it can get with Newtonsoft.Json, I couldn't find anything obvious:
So if performance were still an issue (it isn't for me), you could investigate System.Text.Json.
Wohhoo awesome results! I doubt we will get a perf issue any time soon if it can handle so much data at once! Although I wonder what one could squeeze out the new JSON APIs
closes https://github.com/Zaid-Ajaj/Fable.Remoting/issues/127
based on https://github.com/0x53A/FableRemotingSerializationTest/commit/a28e01203a518164367769ef4b4983c741ceb743
Question: Is using just a Dictionary safe, or could the instance be shared between Threads?
Edit: Answer: one instance is shared, so need to use ConcurrentDictionary