Skip to content

Cache NetworkVersion in VerWarcher #326

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

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

thaarok
Copy link
Contributor

@thaarok thaarok commented Jun 9, 2022

Go-Opera currently consume 5% of all database reading time in repeated reading of NetVersion:

image

This pull requests adds cache into the VerWatcher Store, which reduce this to almost zero - the value is loaded from the database only once and keep up-to-date in the cache on updates.

@thaarok thaarok requested a review from andrecronje as a code owner June 9, 2022 14:21
@thaarok thaarok force-pushed the cache-network-version branch from 2596cd1 to a21382b Compare June 9, 2022 20:18
@thaarok thaarok force-pushed the cache-network-version branch from a21382b to 56c5fa4 Compare June 9, 2022 20:48
@thaarok
Copy link
Contributor Author

thaarok commented Jun 13, 2022

@uprendis Hi, as this PR has two reviews as required, can you merge it?

@uprendis uprendis merged commit d2a00f5 into Fantom-foundation:develop Jun 13, 2022
@thaarok thaarok deleted the cache-network-version branch June 14, 2022 11:42
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.

3 participants