Speed up get_all_trials in InMemoryStorage#4716
Conversation
|
@Alnusjaponica Could you review this PR? |
b21b7f1 to
246bdca
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #4716 +/- ##
==========================================
+ Coverage 90.86% 90.87% +0.01%
==========================================
Files 188 188
Lines 14323 14321 -2
==========================================
Hits 13014 13014
+ Misses 1309 1307 -2
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
The change itself LGTM. I am going to approve this PR after @not522 added the test for the commented part. |
|
I think the tests are insufficient. There is no test for this feature and only the |
|
I added the test that returned |
Motivation
Filtering trials with
filterandlistis slower than list comprehension. It is a bottleneck when the number of trials is large.Description of the changes
get_all_trials.