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

Removed parent from hashCode of Scope #1353

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Removed parent from hashCode of Scope #1353

merged 3 commits into from
Nov 21, 2023

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented Nov 15, 2023

This was causing MAJOR performance problems, since we are using the hashCode in the symbol resolver for caching. This had the effect that on deeply nested scopes, performance dropped quite largely.

@oxisto oxisto requested a review from konradweiss as a code owner November 15, 2023 20:16
@oxisto oxisto force-pushed the scope-hashcode branch 2 times, most recently from b4db471 to 13920f9 Compare November 16, 2023 08:59
@oxisto oxisto enabled auto-merge (squash) November 21, 2023 08:04
@oxisto oxisto disabled auto-merge November 21, 2023 08:09
This was causing MAJOR performance problems, since we are using the `hashCode` in the symbol resolver for caching. This had the effect that on deeply nested scopes, performance dropped quite largely.
* Removed `parent` from `hashCode` of `Scope`

This was causing MAJOR performance problems, since we are using the `hashCode` in the symbol resolver for caching. This had the effect that on deeply nested scopes, performance dropped quite largely.

* Comparing scope in case of a cache hit to avoid collisions

* Make control-flow sensitive DFG pass configurable by complexity

This calculates a simple cylic complexity for functions and adds a configuration option to specify a max for the control-flow sensitive DFG pass.

* Extracted configuration in a more generic pass-specific config

* Added unit test
@oxisto oxisto enabled auto-merge (squash) November 21, 2023 08:11
Copy link

sonarcloud bot commented Nov 21, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

72.1% 72.1% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@oxisto oxisto merged commit b748a07 into main Nov 21, 2023
3 of 4 checks passed
@oxisto oxisto deleted the scope-hashcode branch November 21, 2023 08:29
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.

2 participants