Skip to content
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

Change Packets To Structs #259

Open
liamdalg opened this issue Mar 12, 2020 · 1 comment
Open

Change Packets To Structs #259

liamdalg opened this issue Mar 12, 2020 · 1 comment
Assignees
Labels

Comments

@liamdalg
Copy link
Contributor

Current Behaviour: the packets are lots of small classes, which will be allocated on the heap, and lead to bad GC.

Desired Behaviour: switch to structs so we use the stack more often. We also might be able to take advantage of the stackalloc keyword with arrays maybe? https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc

@ghost
Copy link

ghost commented Mar 12, 2020

@ChrisGora has coronavirus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants