AllDotPy / AllDotPy/Ryx

perf: reduce heap allocations using SmallVec for RowView values

Open
#55 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement ryx-backend
Dominant language
Rust
Stars
13
Forks
5
Avg merge
1h 49m
Merged PRs (30d)
3

Description

Ryx targets 1-5 microseconds overhead. Currently, RowView stores row values in a Vec, which always allocates on the heap. For queries with a small number of columns (the majority of cases), this is unnecessary overhead.

Goal: Replace Vec<T> with SmallVec<[T; N]> in the RowView structure to enable stack allocation for rows with up to N columns.

Implementation hint:

  1. Add the smallvec crate to ryx-backend.
  2. Modify the RowView definition and the decode_rows logic to use SmallVec.
  3. Run benchmarks to quantify the reduction in allocator pressure.

Contributor guide

Open the contributing guide

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

Start in the ryx-backend code by locating the RowView definition and decode_rows logic mentioned in the issue. Check existing dependency and benchmark conventions before introducing SmallVec. Done means small rows avoid heap allocation, behavior remains correct, and benchmarks quantify allocator-pressure changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.