Cache chip specs
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by locating the chip-spec JSON deserialization entry point in libquil-sys and compare it with the existing chip cache in quilc. Confirm how chip specs are reused and define completion as avoiding repeated slow deserialization while preserving the current chip-spec behavior; no specific file or test is named in the issue.
Written by the indexing model from the issue text.
Description
Deserializing a chip spec from JSON is slow in quilc (on the order of 1s for an Aspen-M-3 chip). In quilc, we got around that by adding a chip cache, so that only the first use of the chip was slow. We ought to include the same to alleviate that slow deserialization.
Alternatively, we could:
- make use of the caching already in quilc
- improve performance in quilc
The former is reasonable, but would be gated by review from quil-lang; if we instead implement it here, we can move quicker. The latter alternative is not a sure-thing and would take a good amount of effort. So I think managing the cache ourselves is the best option.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rigetti/libquil-sys
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
rigetti/libquil-sys#64 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
rigetti/libquil-sys#48 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rigetti/libquil-sys#29 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rigetti/libquil-sys#26 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rigetti/libquil-sys#24 ·
All issues in rigetti/libquil-sys
Similar issues
-
chat compiler P1
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
HerringtonDarkholme/hd-lang#2793 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
security-advisory
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MinBZK/regelrecht#2173 ·
-
ci
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jonathanong/no-mistakes#5804 ·
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day