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

Explicit stats for blocks #443

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Explicit stats for blocks #443

merged 4 commits into from
Dec 6, 2024

Conversation

Scooletz
Copy link
Contributor

@Scooletz Scooletz commented Dec 5, 2024

This PR introduces explicitly stored statistics for a block. This allows fast iteration over values without having them actually re-retrieved from the _state or _storage. It also removes the need of visiting with the filtering.

This should help to address the gap visible in storage processing, where previously OnStorage that does the actual job was running roughly through the 50% of the visit time. The rest was probably spent on filtering.

The synthetic benchmark and comparison shows huge gains by omitting the visiting aspect and acting directly on the data.

Benchmarks

Overhead

image

Diff

image

Copy link

github-actions bot commented Dec 6, 2024

Code Coverage

Package Line Rate Branch Rate Health
Paprika 84% 81%
Summary 84% (4945 / 5918) 81% (1698 / 2102)

Minimum allowed line rate is 75%

@Scooletz Scooletz marked this pull request as ready for review December 6, 2024 13:06
@Scooletz Scooletz merged commit 3dc0991 into main Dec 6, 2024
5 checks passed
@Scooletz Scooletz deleted the explicit-stats-for-commit branch December 6, 2024 13:06
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.

1 participant