Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements for CXX frontend #1363

Merged
merged 5 commits into from
Nov 24, 2023
Merged

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented Nov 22, 2023

While not directly in the CXX frontend, this makes typedef resolution MUCH faster, leading to cases where the CXX frontend (which almost uses this exclusively) was about 50 % faster.

@konradweiss konradweiss marked this pull request as ready for review November 23, 2023 14:14
@konradweiss konradweiss self-requested a review as a code owner November 23, 2023 14:14
@oxisto oxisto force-pushed the optimize-cxx-frontend branch 2 times, most recently from e93d144 to 8cd23e1 Compare November 23, 2023 20:16
Previously, in the CXX frontend, we were supplying the `rawSignature` as code(override) to almost all functions that created nodes. The issue with that is, that this does not respect the `codeInNodes` config option, which might be turned on to save memory.

This PR consequently uses the `rawNode` parameter, which forwards setting code and location to the language frontend, which DOES respect the `codeInNodes` option.
@oxisto oxisto force-pushed the optimize-cxx-frontend branch from 8cd23e1 to e27db37 Compare November 24, 2023 08:36
@oxisto oxisto enabled auto-merge (squash) November 24, 2023 08:37
Copy link

sonarcloud bot commented Nov 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

79.3% 79.3% Coverage
1.6% 1.6% Duplication

@oxisto oxisto merged commit ebd0364 into main Nov 24, 2023
4 checks passed
@oxisto oxisto deleted the optimize-cxx-frontend branch November 24, 2023 09:19
oxisto added a commit that referenced this pull request Nov 24, 2023
* Performance improvements for CXX frontend

* Avoid using `rawSignature` directly when creating nodes (#1362)

Previously, in the CXX frontend, we were supplying the `rawSignature` as code(override) to almost all functions that created nodes. The issue with that is, that this does not respect the `codeInNodes` config option, which might be turned on to save memory.

This PR consequently uses the `rawNode` parameter, which forwards setting code and location to the language frontend, which DOES respect the `codeInNodes` option.

* Added complexity and mermaid chart

* More cleanup of old typedef remnants
oxisto added a commit that referenced this pull request Nov 28, 2023
* Performance improvements for CXX frontend

* Avoid using `rawSignature` directly when creating nodes (#1362)

Previously, in the CXX frontend, we were supplying the `rawSignature` as code(override) to almost all functions that created nodes. The issue with that is, that this does not respect the `codeInNodes` config option, which might be turned on to save memory.

This PR consequently uses the `rawNode` parameter, which forwards setting code and location to the language frontend, which DOES respect the `codeInNodes` option.

* Added complexity and mermaid chart

* More cleanup of old typedef remnants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant