Skip to content
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

Use SQLite in restoration benchmark (instead of MVar implementation) #379

Merged
merged 2 commits into from
Jun 6, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 6, 2019

Issue Number

#154

Overview

  • I have replaced the MVar implementation with the file-based SQLite one in the restoration benchmark

Comments

As expected, this is slightly slower (for testnet at least), but, memory now remains within acceptable bounds instead of growing towards infinity. Below, comparison of the heap profile between the MVar (in first) and the SQLite (in second):. Curious to see what it looks like on Mainnet :)

image

FIGURE 1: restoration benchmark - testnet - MVar

image

FIGURE 2: restoration benchmark - testnet - SQLite

@KtorZ KtorZ requested a review from paweljakubas June 6, 2019 14:06
@KtorZ KtorZ self-assigned this Jun 6, 2019
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

LGTM!

@KtorZ KtorZ merged commit 9155101 into master Jun 6, 2019
@KtorZ KtorZ deleted the KtorZ/154/restoration-benchmark-with-sqlite branch June 6, 2019 16:15
@rvl
Copy link
Contributor

rvl commented Jun 7, 2019

Splitting the address state tables into a separate Persistent TH module is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants