typst / typst/ecow

EcoSmallVec?

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

Nobody has claimed this yet.

Dominant language
Rust
Stars
320
Forks
32
Avg merge
4d 13h
Merged PRs (30d)
1

Description

SmallVec is amazing for a bit of inline storage, and convenient spill for larger values: Exactly the principle behind EcoString.

Having to choose between SmallVec and EcoVec can be difficult; has any thought been given to, or is there any interest in, creating an EcoSmallVec where N elements are stored inline before spilling to the allocated mode?

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

The issue names SmallVec and EcoVec but no repository files or tests. First inspect how EcoVec handles inline and allocated storage, then compare the relevant SmallVec design. Done would require an agreed API and behavior for EcoSmallVec, followed by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.