clockworklabs / clockworklabs/SpacetimeDB

perf: Shrink the various types in `TableInner`

Open
#2,084 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
25.2k
Forks
1.1k
Avg merge
2d 7h
Merged PRs (30d)
46

Description

For example, RowTypeLayout, StaticLayout, StaticBsatnValidator, and ``VarLenVisitorProgram` could amount to up to 32 bytes in savings. This should be considered after the other more important perf issues have been fixed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search for TableInner and the named types—RowTypeLayout, StaticLayout, StaticBsatnValidator, and VarLenVisitorProgram—and inspect their definitions and usages. Measure their current sizes before investigating whether their representations can be reduced without changing behavior. Done means the applicable types are smaller while the existing project checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.