Skip to content
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

Fetch incoming payments in parallel #1880

Merged
merged 1 commit into from
Jul 16, 2021
Merged

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Jul 16, 2021

This is a simpler approach to completely parallelizing the handling of payments (attempted in branch parallel-payment-handler), where we simply parallelize the fetch from the database.

The advantage is that it is a much smaller change, that already brings a ~30% performance improvement in performance in PerformanceIntegrationSpec.

This is a simpler approach to completely parallelizing the handling of
payments, where we simply parallelize the fetch from the database.

This brings a ~30% performance improvement in performance in `PerformanceIntegrationSpec`.
@pm47 pm47 requested a review from t-bast July 16, 2021 12:07
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@codecov-commenter
Copy link

Codecov Report

Merging #1880 (c3b09e0) into master (3bb7ee8) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1880      +/-   ##
==========================================
+ Coverage   87.32%   87.35%   +0.03%     
==========================================
  Files         159      159              
  Lines       11955    11960       +5     
  Branches      476      475       -1     
==========================================
+ Hits        10440    10448       +8     
+ Misses       1515     1512       -3     
Impacted Files Coverage Δ
...cinq/eclair/payment/receive/MultiPartHandler.scala 95.20% <100.00%> (+0.20%) ⬆️
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 86.35% <0.00%> (ø)
...clair/channel/publish/ReplaceableTxPublisher.scala 86.98% <0.00%> (+1.18%) ⬆️
...ala/fr/acinq/eclair/balance/ChannelsListener.scala 96.55% <0.00%> (+3.44%) ⬆️

@pm47 pm47 merged commit b4183ed into master Jul 16, 2021
@pm47 pm47 deleted the parallel-payment-handler-simple branch July 16, 2021 12:36
pm47 added a commit that referenced this pull request Jul 16, 2021
The parallelization introduced with #1880 has created race conditions in tests.
@pm47 pm47 mentioned this pull request Jul 16, 2021
pm47 added a commit that referenced this pull request Jul 16, 2021
The parallelization introduced with #1880 has created race conditions in tests.
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.

3 participants