Repository navigation
[improve][broker] Pin executor to managed ledger instance to cache the string hashing - #18078
Merged
Merged
Conversation
merlimat
requested review from
codelipenghui,
eolivelli,
hangc0276 and
lhotari
October 17, 2022 21:30
|
@merlimat Please add the following content to your PR description and select a checkbox: |
1 of 4 tasks
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #18078 +/- ##
============================================
- Coverage 47.06% 46.56% -0.50%
- Complexity 8956 10342 +1386
============================================
Files 592 698 +106
Lines 56313 68326 +12013
Branches 5844 7332 +1488
============================================
+ Hits 26503 31817 +5314
- Misses 26946 32886 +5940
- Partials 2864 3623 +759
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Technoboy-
approved these changes
Oct 20, 2022
AnonHxy
approved these changes
Oct 20, 2022
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
October 22, 2022 14:16
c27ba86 to
a971e4c
Compare
codelipenghui
approved these changes
Oct 24, 2022
coderzc
approved these changes
Oct 24, 2022
Contributor
|
/pulsarbot rerun-failure-checks |
tisonkun
approved these changes
Nov 2, 2022
Member
|
/pulsarbot rerun-failure-checks |
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 5, 2022 01:06
a971e4c to
46f1b28
Compare
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 19, 2022 05:13
46f1b28 to
7082989
Compare
2 of 5 tasks
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 23, 2022 01:50
7082989 to
814a24c
Compare
lifepuzzlefun
approved these changes
Nov 24, 2022
AnonHxy
force-pushed
the
managed-ledger-executor-cache
branch
from
November 28, 2022 16:24
8a7a7ce to
9783b6b
Compare
AnonHxy
force-pushed
the
managed-ledger-executor-cache
branch
from
November 29, 2022 05:05
9783b6b to
66fc80a
Compare
michaeljmarshall
approved these changes
Nov 30, 2022
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Dec 9, 2022
…e string hashing (apache#18078) Co-authored-by: Jiwe Guo <[email protected]> Co-authored-by: houxiaoyu <[email protected]>
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
…e string hashing (apache#18078) Co-authored-by: Jiwe Guo <[email protected]> Co-authored-by: houxiaoyu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
In many operations we're hashing on the managed ledger name to ensure all the callbacks are triggered from same thread. Instead of hashing the string each, let's pin the thread and always use the same, for a given managed ledger instance.
This will avoid the hashing overhead.
Tests in merlimat#3
docdoc-requireddoc-not-neededdoc-complete