oxc-project / oxc-project/backlog

Improve `Vec2`

Open
#199 8 comments 1 reaction 1 assignee View on GitHub

@Dunqing is already working on this.

Since Mar 17, 2025.

A-ast
Dominant language
No language data
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The following tasks are for Vec, I intend to work on them in order.

  • Speed up push by adding a grow_one method, like https://doc.rust-lang.org/src/alloc/raw_vec.rs.html#338-343 oxc-project/oxc#9855 oxc-project/oxc#9856
  • Align initialize size of amortized strategy with standard implementation oxc-project/oxc#9857
  • Clean up duplicate function/method by calling the standard library exposed https://github.com/oxc-project/oxc/pull/9860
  • Rename used_cap and needed_extra_cap params names to len and additional` to make it like the same as the standard implementation does oxc-project/oxc#9858
  • Improve methods according to the standard implementation one by one oxc-project/oxc#9752
  • Remove ZSTs support
  • Merge RawVec into Vec2 and change len and cap to u32 oxc-project/oxc#10883
  • Change len and cap fields from usize to u32 oxc-project/oxc#10884
  • Removing #[expect(...)] attr (not decide when to start, but it probably starts when all methods implementation has aligned with std)
  • Add &Arena instead of &bump https://github.com/oxc-project/backlog/issues/199#issuecomment-3765255495
  • Remove Vec::try_ methods.
  • Merge Vec and Vec2 into one

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.