binyomen / binyomen/loxide

Specify a starting capacity for `Vec`s

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
optimization
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://craftinginterpreters.com/chunks-of-bytecode.html specifies creating dynamic arrays with a starting capacity of 8. Right now we're using the `Vec` defaults, but other options could provide optimizations.

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the linked Crafting Interpreters chapter, then search the repository for Vec constructions that currently use default capacity. Determine which dynamic arrays are covered and choose a starting-capacity approach consistent with the issue; done means the relevant Vecs have explicit initial capacities and the existing test suite still passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.