Improve compile times
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- cpp
- Domain
- compilers, performance
Research direction
Start by reviewing the checklist, the Godbolt example, and the linked CWG2369 discussion to understand the return-type issue; Templight is the named tool for profiling template instantiations. Done would require measurable compile-time improvements across several proposed refactors, but the issue does not name files, tests, or a bounded target.
Written by the indexing model from the issue text.
Description
- Apply "SCARY iterator"-like refactorization of class templates to minimize the number and complexity of class template arguments.
- No local classes in function templates. That includes lambdas.
- Bring down mangled name length to speed up debug builds.
- Investigate where complicated function template return types are being computed unnecessarily. See https://godbolt.org/z/Mqhj7voxq for an example. See cwg2369 for the core issue.
- Use Templight to get a compile-time flame graph and prune expensive template instantiations.
- Replace internal use of heavyweight types (
std::tuple,std::optional,std::variant) with more lean custom types. Seemanual_lifetimeandmanual_lifetime_unionin libunifex. See my prototype lambda-based tuple implementation in this gist.
- Dominant language
- C++
- Stars
- 2.4k
- Forks
- 270
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 37
Contributor guide
No contributing guide indexed for this repository
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 NVIDIA/stdexec
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 66/100
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Similar issues
-
ai_reviewed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ydb-platform/ydb#53869 · 3 comments ·
-
bug cert blocker needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conan-io/conan-center-index#31035 ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
vllm-project/vllm-ascend#17329 ·