-
Notifications
You must be signed in to change notification settings - Fork 16
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
perf: improve bootstrap performance hash bins #655
perf: improve bootstrap performance hash bins #655
Conversation
e6a4551
to
ea658e6
Compare
Performance improvement: Use threads to create all delegated roles Before : Added 2048 hash bins in 119.36732602119446 seconds Current: Added 2048 hash bins in 1.8565280437469482 seconds PyPI (PEP 458) and RubyGems size creation: Added 16384 hash bins in 15.13554310798645 seconds Signed-off-by: Kairo Araujo <[email protected]>
ea658e6
to
fa8f242
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #655 +/- ##
============================================
- Coverage 100.00% 74.41% -25.59%
============================================
Files 15 14 -1
Lines 1071 1317 +246
============================================
- Hits 1071 980 -91
- Misses 0 337 +337 ☔ 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.
It this tested througfully?
I see that we are changing two objects inside process_delegated_role
:
- targets
- db_target_roles
Have you considered race conditions?
Signed-off-by: Kairo Araujo <[email protected]>
Yes, I have considered it, including using multiple Workers
Here is the FT running two wokers Bootstrap
FT
|
7f4513a
into
repository-service-tuf:main
Performance improvement: Use threads to create all delegated roles
Before : Added 2048 hash bins in 119.36732602119446 seconds
Current: Added 2048 hash bins in 1.8565280437469482 seconds
PyPI (PEP 458) and RubyGems size creation:
Added 16384 hash bins in 15.13554310798645 seconds