Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Apr 13, 2021

This change significantly increases IBD performance by increasing the amount of the UTXO index that can remain in memory. To ensure this doesn't cause problems in the future, a static_assert on the LevelDB version has been added, which must be updated by anyone upgrading LevelDB.

In upstream, this resulted in a substantial difference in the sync time. A 50% reduction in the reindex time.
So.. 2x speedup improvement.

Coming straight from bitcoin#12495.

@furszy furszy self-assigned this Apr 13, 2021
@furszy furszy added this to the 6.0.0 milestone Apr 13, 2021
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code ACK, just needs to cleanup the developer-notes.md file as the cherry-pick introduced duplicate sections

This change significantly increases IBD performance by increasing the
amount of the UTXO index that can remain in memory. To ensure this
doesn't cause problems in the future, a static_assert on the LevelDB
version has been added, which must be updated by anyone upgrading
LevelDB.
@furszy
Copy link
Author

furszy commented Apr 16, 2021

Updated per feedback.

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 7ce17a6

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7ce17a6 and merging...

@random-zebra random-zebra merged commit 2bc9da6 into PIVX-Project:master Apr 17, 2021
@furszy furszy deleted the 2021_db_speedup branch November 29, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants