Skip to content

Significantly reduce small byte array allocations #305

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

Merged
merged 8 commits into from
Apr 26, 2025

Conversation

kazimuth
Copy link
Contributor

@kazimuth kazimuth commented Apr 24, 2025

This purges the DbValue type, instead using row instances themselves as primary key for rows without primary keys. In addition, it instantiates only a single BinaryReader when reading updates for a table, rather than instantiating a BinaryReader and performing an array copy per-row of the table.

Addresses https://github.com/clockworklabs/SpacetimeDBPrivate/issues/1633

API

  • This is an API breaking change to the SDK

If the API is breaking, please state below what will break

Requires SpacetimeDB PRs

Testsuite

SpacetimeDB branch name: master

Testing

Write instructions for a test that you performed for this PR

  • CI

This purges the DbValue type, instead using row instances themselves as
primary key for rows without primary keys. In addition, it instantiates
only a single BinaryReader when reading updates for a table, rather than
instantiating a BinaryReader and performing an array copy per-row of the
table.
Copy link

Some missing or dangling .meta found. Fix commits are needed.

Status File
Not committed src/ListStream.cs.meta

@kazimuth kazimuth merged commit a75a552 into master Apr 26, 2025
7 checks passed
@kazimuth kazimuth deleted the jgilles/fewer_copies branch April 26, 2025 16:08
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

Successfully merging this pull request may close these issues.

3 participants