-
Notifications
You must be signed in to change notification settings - Fork 214
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
Variable pipelining to optimize memory usage in the wallet restoration phase #3274
Variable pipelining to optimize memory usage in the wallet restoration phase #3274
Conversation
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.
Will look more tomorrow
36ad806
to
002b2a4
Compare
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.
I really like the PipeliningStrategy
encapsulation 😊 — and recommend to focus the types on it. See comments.
cfcf20f
to
66430c2
Compare
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.
Punchier names! ✊
For example, I have no idea how to explain the meaning and purpose of the Pipelining
type succinctly. But I can explain getPipelineSize
: "getPipelineSize
returns the size of the pipeline that should be used after encountering the given block
(height)". Hence, I recommend to inline the type names.
581df10
to
af6bdd8
Compare
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.
One last style issue to fix, then it's good to go! 😊
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.
Hi @paolino
There are a few sections of the code that are in excess of our line length limit. Would it be possible to amend those before merging?
Many thanks!
Jonathan
d3e17b2
to
15c6ba0
Compare
bors r+ |
3274: Variable pipelining to optimize memory usage in the wallet restoration phase r=paolino a=paolino - I have implemented a pipelining number that depends on blockheight ### Issue Number ADP-1765 Co-authored-by: Paolo Veronelli <[email protected]>
Build failed: |
bors r+ |
Build succeeded: |
Issue Number
ADP-1765