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

Maintain a map of pre-built ValidationEngine instances #1640

Merged
merged 39 commits into from
Jul 10, 2024

Conversation

dotasek
Copy link
Collaborator

@dotasek dotasek commented May 28, 2024

This adds a map of ValidationEngine instances to ValidationService.

When ValidationService receives a validation request in which the CliContext specifies a baseEngine (a key for the map), the new engine is generated from the pre-existing one, a faster operation than loading all packages.

The only caveat for generation is that the language and locale for the new engine are still set from the CliContext after the engine is copied.

dotasek and others added 30 commits January 23, 2024 11:45
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.49%. Comparing base (61c1755) to head (6201b6b).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1640   +/-   ##
=========================================
  Coverage     12.48%   12.49%           
- Complexity    32176    32201   +25     
=========================================
  Files          2203     2203           
  Lines        672789   672809   +20     
  Branches     198248   198251    +3     
=========================================
+ Hits          83993    84045   +52     
+ Misses       559077   559045   -32     
  Partials      29719    29719           

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

@dotasek dotasek marked this pull request as ready for review July 4, 2024 19:14
Copy link
Collaborator

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

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

ok

@grahamegrieve grahamegrieve merged commit 53ab71f into master Jul 10, 2024
33 checks passed
@grahamegrieve grahamegrieve deleted the do-20240122-base-engine branch July 10, 2024 23:22
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