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

perf: starting on using BitSegment instead of ArraySegment #1177

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

James-Frowen
Copy link
Member

  • removing PadToByte (error prone when copying writers)

todo:

  • make version of NetworkWriter/Reader that are structs and just take in a bitsegment
  • can use BitSegment in network messages
  • make socketlayer take in span or aligned BitSegment

this will allow NetworkWriter to be created using tmp buffer or stackalloc rather than needing pool

- removing PadToByte (error prone when copying writers)

todo:
- make version of NetworkWriter/Reader that are structs and just take in a bitsegment
- can use BitSegment in network messages
- make socketlayer take in span or aligned BitSegment

this will allow NetworkWriter to be created using tmp buffer or stackalloc rather than needing pool
@github-actions github-actions bot added the has conflicts Pull Request has merge conflicts label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has conflicts Pull Request has merge conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant