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

Replace byte[] with ReadOnlyMemory/Span where possible #171

Open
lcodes opened this issue Oct 15, 2024 · 0 comments
Open

Replace byte[] with ReadOnlyMemory/Span where possible #171

lcodes opened this issue Oct 15, 2024 · 0 comments
Assignees

Comments

@lcodes
Copy link
Contributor

lcodes commented Oct 15, 2024

For large network payloads (hearing cases of 75k+ rows in a single update) the receiving thread currently breaks down each of these rows into a separate byte[] allocation. This is to replace them with slices into existing buffers.

The tricky part is storage inside caches, where the byte[] of the row is used as a key; a solution is to make table types produce implement hash and equality operators to become their own keys.

@lcodes lcodes self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant