Skip to content

Conversation

@godexsoft
Copy link
Collaborator

This PR fixes some performance issues in the recently changed WorkQueue with priority support.
The way this was fixed is by creating a micro benchmark and copying the old code into the benchmark to compare against. I'm leaving the benchmark in so that we can always quickly measure again if we need to.

Result of these changes is ~2x performance on 8 threads with 5000 queue limit (similar to s1/s2 setup).

@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 81.48148% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.84%. Comparing base (5269ea0) to head (9d9361c).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/rpc/WorkQueue.hpp 75.00% 1 Missing and 2 partials ⚠️
src/rpc/WorkQueue.cpp 86.66% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2866      +/-   ##
===========================================
- Coverage    81.86%   81.84%   -0.03%     
===========================================
  Files          381      381              
  Lines        14417    14423       +6     
  Branches      7935     7933       -2     
===========================================
+ Hits         11803    11805       +2     
- Misses        1446     1447       +1     
- Partials      1168     1171       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mathbunnyru mathbunnyru merged commit 2327e81 into XRPLF:develop Dec 19, 2025
28 checks passed
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