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

ScopeContext - Replace recursive lookup with enumeration #5175

Merged
merged 1 commit into from Mar 24, 2023

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Mar 22, 2023

Resolve #5171

ScopeContext is optimized to have minimal overhead, until making actual property-lookup. To also make the property-lookup very fast, where it used recursion to build the lookup-dictionary with minimal allocation (resolve exact initial-capacity). But recursion can lead to stackoverflow, so better to be a little slower than to be dead.

@snakefoot snakefoot added the enhancement Improvement on existing feature label Mar 22, 2023
@snakefoot snakefoot added this to the 5.1.3 milestone Mar 22, 2023
@snakefoot snakefoot force-pushed the scopecontext-recursion branch 11 times, most recently from ac0e155 to 7dd61c2 Compare March 24, 2023 23:09
@snakefoot snakefoot enabled auto-merge (squash) March 24, 2023 23:15
@sonarcloud
Copy link

sonarcloud bot commented Mar 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

94.6% 94.6% Coverage
0.0% 0.0% Duplication

@snakefoot snakefoot merged commit 6cf3731 into NLog:dev Mar 24, 2023
4 checks passed
@snakefoot snakefoot changed the title ScopeContext - Replace rescursive lookup with enumeration ScopeContext - Replace recursive lookup with enumeration Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StackOverflowException due to recursive lookup
1 participant