-
Notifications
You must be signed in to change notification settings - Fork 2.2k
channeldb: load graph cache async #8919
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
base: master
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are limited to specific labels. Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
1d3f8bb
to
90faf71
Compare
9f4b350
to
ecb8d1b
Compare
7e1f6f5
to
b4e07a4
Compare
d1ef97d
to
243f2a0
Compare
243f2a0
to
05bdb25
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.
@djkazic - im happy to review this once it's ready
@djkazic, remember to re-request review from reviewers when ready |
!lightninglabs-deploy mute |
Change Description
Today, LND startup time can be slow. This PR aims to speed up initial startup by performing graph cache population in the background. All callsites for
c.graphCache
have been refactored to usec.getGraphCache()
instead which will return the cache if it's ready or an error if an error occurred during cache population. Pending updates are queued and then executed once the graph cache is done being loaded.Note that this PR is a prototype, reviews are welcome.
Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.Fixes #6187