Add progress logging to claimtrie loading and validation. #408

Open
pseudoscalar wants to merge 1 commit from pseudoscalar/issue/363 into master
pseudoscalar commented 2021-09-15 07:51:32 +02:00 (Migrated from github.com)

To resolve 363

To resolve [363](https://github.com/lbryio/lbrycrd/issues/363)
BrannonKing (Migrated from github.com) reviewed 2021-09-15 15:34:08 +02:00
BrannonKing (Migrated from github.com) commented 2021-09-15 15:33:19 +02:00

This pre-count loop could be very expensive, as the disk cache won't be warm. How long is this loop taking compared to the lower loop?

This pre-count loop could be very expensive, as the disk cache won't be warm. How long is this loop taking compared to the lower loop?
pseudoscalar (Migrated from github.com) reviewed 2021-09-15 16:10:47 +02:00
pseudoscalar (Migrated from github.com) commented 2021-09-15 16:10:47 +02:00

I was seeing 1-3 seconds in the precount loop vs ~2 minutes for the lower loop.

I was seeing 1-3 seconds in the precount loop vs ~2 minutes for the lower loop.
pseudoscalar (Migrated from github.com) reviewed 2021-09-15 16:22:25 +02:00
pseudoscalar (Migrated from github.com) commented 2021-09-15 16:22:25 +02:00

Sorry, I should clarify. ~2 minutes for the whole load from disk. It was split pretty evenly between the 2 lower loops (so ~1 minute each). That's why I decided to do a precount loop: counting the total in the first lower loop would leave the operation already half done (time-wise). I couldn't see another way to estimate progress, and the added time seemed negligible next to the main operation.

Sorry, I should clarify. ~2 minutes for the whole load from disk. It was split pretty evenly between the 2 lower loops (so ~1 minute each). That's why I decided to do a precount loop: counting the total in the first lower loop would leave the operation already half done (time-wise). I couldn't see another way to estimate progress, and the added time seemed negligible next to the main operation.
pseudoscalar (Migrated from github.com) reviewed 2021-09-17 16:03:32 +02:00
pseudoscalar (Migrated from github.com) commented 2021-09-17 16:03:32 +02:00

Did you want me to find a way to eliminate the precount, or is this good?

Did you want me to find a way to eliminate the precount, or is this good?
BrannonKing commented 2021-09-17 16:13:47 +02:00 (Migrated from github.com)

Have you looked at adding the progress notifiers to the v17_master and v19_master branches?

Have you looked at adding the progress notifiers to the v17_master and v19_master branches?
pseudoscalar commented 2021-09-17 16:48:28 +02:00 (Migrated from github.com)

I haven't yet. I start putting together some PRs for those.

I haven't yet. I start putting together some PRs for those.
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin pseudoscalar/issue/363:pseudoscalar/issue/363
git checkout pseudoscalar/issue/363

Merge

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff pseudoscalar/issue/363
git checkout master
git merge --ff-only pseudoscalar/issue/363
git checkout pseudoscalar/issue/363
git rebase master
git checkout master
git merge --no-ff pseudoscalar/issue/363
git checkout master
git merge --squash pseudoscalar/issue/363
git checkout master
git merge --ff-only pseudoscalar/issue/363
git checkout master
git merge pseudoscalar/issue/363
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#408
No description provided.