Skip to content

Efficiency improvements to coverage plans with large ring-sizes (re-s… - #39

Closed
martinsumner wants to merge 1 commit into
openriak-4.0from
nhse-o40-pr36.uplift
Closed

Efficiency improvements to coverage plans with large ring-sizes (re-s…#39
martinsumner wants to merge 1 commit into
openriak-4.0from
nhse-o40-pr36.uplift

Conversation

@martinsumner

Copy link
Copy Markdown
Contributor

…… (#36)

  • Efficiency improvements to coverage plans with large ring-sizes (re-submit)

Remove unnecessary sort, once per loop.

For each split mark, cache the calculation of the vnode list as a persistent_term. These will never change, and there will be a need for RingSize terms per node - and is bounded to that upper limit.

Second attempt at commit, after making inadvertent commit.

  • Add specs and comments to clarify code

  • Rename ordered_vnodes as shuffled_positions

  • Update src/riak_core_coverage_plan.erl


#36)

* Efficiency improvements to coverage plans with large ring-sizes (re-submit)

Remove unnecessary sort, once per loop.

For each split mark, cache the calculation of the vnode list as a persistent_term.  These will never change, and there will be a need for RingSize terms per node - and is bounded to that upper limit.

Second attempt at commit, after making inadvertent commit.

* Add specs and comments to clarify code

* Rename ordered_vnodes as shuffled_positions

* Update src/riak_core_coverage_plan.erl

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

---------

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>
@martinsumner

Copy link
Copy Markdown
Contributor Author

Reviewed in #36

@martinsumner

Copy link
Copy Markdown
Contributor Author

Replaced by #45

@martinsumner
martinsumner deleted the nhse-o40-pr36.uplift branch March 6, 2026 16:12
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