Merge ~mdeslaur/ubuntu-cve-tracker:more_cvelib_caching into ubuntu-cve-tracker:master
Proposed by
Marc Deslauriers
Status: | Merged |
---|---|
Merged at revision: | 342eea342e33ced00a9ae5f9cdf27d07da0278c0 |
Proposed branch: | ~mdeslaur/ubuntu-cve-tracker:more_cvelib_caching |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
44 lines (+5/-1) 1 file modified
scripts/cve_lib.py (+5/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Murray | Approve | ||
Review via email: mp+462345@code.launchpad.net |
Commit message
commit 7b18c2bd59198d9
Author: Marc Deslauriers <email address hidden>
Date: Wed Mar 13 13:35:25 2024 -0400
cve_lib.py: add more caching to small static cve_lib functions
Description of the change
This brings down ubuntu-table runtime, which is used by cve_need_retire and other things:
BEFORE:
$ time ./scripts/
real 2m7.587s
user 2m6.066s
sys 0m1.522s
AFTER:
$ time ./scripts/
real 0m46.135s
user 0m44.484s
sys 0m1.652s
To post a comment you must log in.
LGTM (I wonder if whether we should change some of our internal data structures to be sets rather than lists to help with the performance of testing presence etc?)