channeldb: load graph cache async#8919
channeldb: load graph cache async#8919djkazic wants to merge 4 commits intolightningnetwork:masterfrom
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
ellemouton
left a comment
There was a problem hiding this comment.
@djkazic - im happy to review this once it's ready
|
@djkazic, remember to re-request review from reviewers when ready |
|
!lightninglabs-deploy mute |
|
Closing this in favor of #10065 |
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.graphCachehave 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