clockworklabs / clockworklabs/SpacetimeDB
C# Client SDK memory/GC spikes of 64KB/250KB several times a second
@rekhoff is already working on this.
Since Jan 22, 2026.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
We have received a bug report had the text:
"Looks like C# client SDK is frequently allocating a substantial amount of memory (250 kb up to several times a second, see red spikes in screenshot). Some of those allocations are pretty beefy (64kb)."
They are currently using SpacetimeDB 1.7.0, but I don't believe that is a factor. They also included a screenshot from Unity's Profiler, showing the SpacetimeDB Network Thread creating these spikes on the Memory section, under the GC Allocated in Frame category.
These spikes are consistent with per-message allocations in the client’s websocket receive pipeline, plus decompression buffering.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.