-
Notifications
You must be signed in to change notification settings - Fork 11
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
Change: Reuse matches in CPE match strings API #1082
Conversation
27656e9
to
3856e17
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1082 +/- ##
==========================================
+ Coverage 90.31% 90.33% +0.01%
==========================================
Files 108 108
Lines 7188 7198 +10
Branches 815 817 +2
==========================================
+ Hits 6492 6502 +10
Misses 491 491
Partials 205 205 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides my inline comments could you add some tests?
@bjoernricks Due to time constrains, @timopollmeier wanted to move tests to "later" ...! |
That's not a good idea at all |
I know. |
I've added a test case for the caching and will add tests to the CPE match downloader in greenbone-scap if there aren't any more urgent fixes required for it. |
When parsing the CPE match string JSON from the NVD API, the matching CPEs are cached and reused if identical ones appear in another match string. This can save memory when processing a large amount of CPE match strings with duplicate matches.
ee0e0fd
to
ced864f
Compare
Conventional Commits Report
🚀 Conventional commits found. |
What
When parsing the CPE match string JSON from the NVD API, the matching CPEs are cached and reused if identical ones appear in another match string.
Why
This can save memory when processing a large amount of CPE match strings with duplicate matches.
References
GEA-820
Checklist