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 redundant character creation caching #2095

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

PieterOlivier
Copy link
Contributor

Character node caching in CharNodeFlattener was redundant (and implemented slighty wrong) as exactly the same caching is already done in RascalValueFactory.

Copy link

codecov bot commented Dec 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49%. Comparing base (eda3949) to head (67d541f).
Report is 69 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##              main   #2095    +/-   ##
========================================
  Coverage       49%     49%            
- Complexity    6312    6321     +9     
========================================
  Files          664     666     +2     
  Lines        59633   59680    +47     
  Branches      8648    8668    +20     
========================================
+ Hits         29489   29606   +117     
+ Misses       27935   27845    -90     
- Partials      2209    2229    +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jurgenvinju jurgenvinju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache in the value factory came later; hence this redundancy. Good to clean up!

@jurgenvinju jurgenvinju merged commit 337210f into main Dec 8, 2024
7 checks passed
@jurgenvinju jurgenvinju deleted the remove-redundant-character-caching branch December 8, 2024 15:24
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