© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago
Joreyk ( IXLLEGACYIXL )

Where are my Allocations coming from?

https://github.com/NexStandard/NexYamlSerializer
thats my repo, if you dont have net10, changing in the projects to net9 is also possible

im benchmarking currently only parsing
https://github.com/NexStandard/NexYamlSerializer/blob/main/ConsoleApp2/FileName.cs#L28-L29
and i dont get where the allocations are comming from

im aware that i create 7 mappings and 14 scalar objects
but that cant allready be almost 5kb allocations, when i use VS allocation debugger i cant get any further to find the reason for such allocations

also i dont know how to further improve the codes allocations
GitHub
GitHub - NexStandard/NexYamlSerializer: Universal Yaml Serializer b...
Universal Yaml Serializer based on Stride.Core.Datacontract - NexStandard/NexYamlSerializer
GitHub - NexStandard/NexYamlSerializer: Universal Yaml Serializer b...
GitHub
NexYamlSerializer/ConsoleApp2/FileName.cs at main · NexStandard/Ne...
Universal Yaml Serializer based on Stride.Core.Datacontract - NexStandard/NexYamlSerializer
NexYamlSerializer/ConsoleApp2/FileName.cs at main · NexStandard/Ne...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

❔ Where are my properties?
C#CC# / help
3y ago
❔ Where are commands usually defined?
C#CC# / help
3y ago
Avoiding boxing (causing many small allocations) in generic classes
C#CC# / help
2y ago
where is my mistake
C#CC# / help
3y ago