clockworklabs / clockworklabs/SpacetimeDB

Fixed length array support

Open
#5,195 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Dynamically sized array is nice Vec<T> and it technically can cover any use case. However, I imagine there's some potential for optimization using fixed length arrays. I'm guessing knowing the size up front and that all rows are identical could help the team internally manage the data better.

Some use cases I can think of, some better than others.

  • grid data for navigation
  • player inventory
  • buffer of some kind, maybe input or something
  • precise control over table size + alignment
  • bit sets for flags

Requested by @onx2 via the SpacetimeDB site.

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

No files, tests, or entry points are named. First clarify the fixed-length array's type and semantics, then locate the existing Vec handling and define tests for the listed use cases before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.