Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`Polynomial` should not allocate

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start with core/src/air/polynomial.rs and inspect how Polynomial is used by the Air::eval implementations during proving. Determine how fixed-size coefficient storage can coexist with arithmetic whose result degree changes. Done means row evaluations no longer allocate vectors while polynomial arithmetic still represents the required result degrees.

Written by the indexing model from the issue text.

Description

The Polynomial struct represents its coefficients as a Vec. Because these are also used by various Air::eval implementations, this means that vectors are being allocated at every row evaluation during proving.

Ideally, the coefficients should be stored in a fixed size array, though this would conflict with the arithmetic operations that cannot return a different type.

The arithmetic operations could be replaced with methods though so that they can return the right type (e.g. multiplication of two polynomial with degree N would return a polynomial of degree 2N)

Dominant language
Rust
Stars
80
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from argumentcomputer/sphinx

All issues in argumentcomputer/sphinx

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.