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

Improve CWL parsing performance #660

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Conversation

GlassOfWhiskey
Copy link
Member

@GlassOfWhiskey GlassOfWhiskey commented Feb 9, 2025

This commit improves CWL parsing by removing useless deepcopy of the context object in the CWLTranslator class. The context dictionary is now simply copied through the copy.copy method.

@GlassOfWhiskey GlassOfWhiskey force-pushed the improve-cwl-translation branch from f0c9a77 to ccd0623 Compare February 9, 2025 19:31
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.40%. Comparing base (e86d21c) to head (4cc3154).
Report is 5 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #660      +/-   ##
==========================================
- Coverage   71.44%   71.40%   -0.05%     
==========================================
  Files          88       88              
  Lines       11345    11349       +4     
  Branches     1981     1983       +2     
==========================================
- Hits         8106     8104       -2     
- Misses       2785     2788       +3     
- Partials      454      457       +3     

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

@GlassOfWhiskey GlassOfWhiskey force-pushed the improve-cwl-translation branch 3 times, most recently from bc54e10 to 7d9fe03 Compare February 12, 2025 10:35
This commit improves CWL parsing by removing useless `deepcopy` of the
`context` object in the `CWLTranslator` class. The `context` dictionary
is now simply copied through the `copy.copy` method.
@GlassOfWhiskey GlassOfWhiskey force-pushed the improve-cwl-translation branch from 7d9fe03 to 4cc3154 Compare February 13, 2025 15:07
@GlassOfWhiskey GlassOfWhiskey merged commit 01f6a23 into master Feb 14, 2025
32 checks passed
@GlassOfWhiskey GlassOfWhiskey deleted the improve-cwl-translation branch February 14, 2025 07:57
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