Rust-GCC / Rust-GCC/gccrs

Performance issue with recursive calls

Open
#3,704 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.9k
Forks
231
Avg merge
19h 55m
Merged PRs (30d)
67

Description

Summary

This code causes an error in gccrs, but rustc didn't report the error. The compiler experiences significant performance degradation when handling recursive calls and nested structures, leading to timeouts.

Reproducer

See it in compiler explorer.

Does the code make use of any (1.49) nightly feature ?
  • Nightly
Godbolt link

https://godbolt.org/z/G49Tfbxff

Actual behavior

The compiler times out.

Expected behavior

The compiler should compile the code quickly.

GCC Version

14.0.1

Contributor guide

Open the contributing guide

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.

Research direction

Start by running the Godbolt reproducer from the issue with gccrs and compare its behavior with rustc. Investigate why recursive calls and nested structures cause gccrs to time out, using GCC 14.0.1 as the reported version. Done means the reproducer compiles quickly without the reported error or timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
compilers, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.