Skip to content

Conversation

@kazimuth
Copy link
Contributor

This dramatically improves performance by avoiding the default implementation of BrotliStream.ReadByte() inherited from Stream, which allocates an array per byte read.

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

  • Describe a test for this PR that you have completed

This dramatically improves performance by avoiding the default
implementation of BrotliStream.ReadByte() inherited from Stream,
which allocates an array per byte read.
@kazimuth
Copy link
Contributor Author

I expect tests to fail here until clockworklabs/SpacetimeDB#2636 is finished merging.

@kazimuth kazimuth requested a review from rekhoff April 23, 2025 22:19
Copy link
Contributor

@rekhoff rekhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. This was already validated during a live coding session, and the changes in the PR reflect that change. Looks great, approved!

@kazimuth kazimuth merged commit 953a403 into master Apr 24, 2025
7 checks passed
@kazimuth kazimuth deleted the jgilles/predecompress branch April 24, 2025 03:44
bfops pushed a commit that referenced this pull request Jul 28, 2025
This dramatically improves performance by avoiding the default
implementation of BrotliStream.ReadByte() inherited from Stream, which
allocates an array per byte read.

## 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*

- [ ] Describe a test for this PR that you have completed
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