-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better options for serializer #180
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #180 +/- ##
===========================================
+ Coverage 53.90% 66.42% +12.51%
===========================================
Files 231 249 +18
Lines 9337 10042 +705
Branches 1071 1076 +5
===========================================
+ Hits 5033 6670 +1637
+ Misses 4049 3020 -1029
- Partials 255 352 +97 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved but see comment
) : IDeserializeProcess | ||
{ | ||
private DeserializeOptions _options = new(false); | ||
private readonly DeserializeProcessOptions _options = options ?? new(false); | ||
|
||
private readonly ConcurrentDictionary<string, (string, IReadOnlyList<string>)> _closures = new(); | ||
private readonly ConcurrentDictionary<string, Base> _baseCache = new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not need to optimise for cases where we have a single c# instance of Base appear multiple times in the graph
small change to use reduce a list allocation
also adds option to cache by Base. Could be unnecessary for IFCs