Performace issue
See original GitHub issueHi @Mike-EEE, I’m experiencing a performance issue when trying to serialize pretty complex object with few dozens of items with custom serializer in list. Currently I’m unable to pinpoint it to the root cause and prepare the repro sample. However, profiler show a 25% time is spend in SetterFactory:39 lambda.Compile();
the serialize is created with
.EnableAllConstructors()
.EnableParameterizedContentWithPropertyAssignments()
.Extend(WritableParameterizedContentExtension.Default)
.EnableImplicitTyping(allTypes.Where(x => !x.CustomAttributes.Any(a => a.AttributeType == typeof(CompilerGeneratedAttribute))))
.UseOptimizedNamespaces()
Any idea what could be root cause?
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (13 by maintainers)
Top Results From Across the Web
Dealing with Performance Problems
Types of Performance Problems ; Quantity of work (untimely completion, limited production). Poor prioritizing, timing, scheduling; Lost time ; Quality of work ( ......
Read more >9 Examples of a Performance Issue
A performance issue is a failure to meet the basic requirements of a job. They are based on reasonable expectations of behavior and...
Read more >Handling Performance Issues With Grace
Low Productivity or Late Completion – Make sure you've been clear about the requirements and expectations of the job. · Poor Quality of...
Read more >Performance Issue Root-Cause Diagnostic
Tool Overview: Accurately assessing employee performance issues is a critical part of providing high-quality performance evaluations.
Read more >What is a performance problem?
Generally, a performance problem is the result of some workload not getting the resources it needs to complete in time. Or the resource...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The timings look much better now!
I’m happy with those results. Good job!
We’re using the optimized namespaces - which in retrospect makes no sense in some of the cases so I’ll remove that. That should fix some of the performance issues for us.
Performance times - 100 iterations run to get an average. Times format: [serialize 1 element in array] / [serialize 100 elements in array] in milliseconds
So the fix you’ve done works! There is still some performance loss because the classes structure is scanned by the serializer even when a custom one is provided.