8000 Reduce the cost of initialization queries during group selection by eth-r · Pull Request #67 · keep-network/sortition-pools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Reduce the cost of initialization queries during group selection #67

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
Feb 26, 2020

Conversation

eth-r
Copy link
Contributor
@eth-r eth-r commented Feb 24, 2020

Querying the leaf position and leaf of an operator to determine eligibility is redundant because we already have that information during group selection. Add isLeafInitialized utility function to act directly on the leaf so we don't pay for 2 unnecessary SLOAD operations per member.

Querying the leaf position and leaf of an operator to determine eligibility
is redundant because we already have that information during group selection.
Add `isLeafInitialized` utility function to act directly on the leaf
so we don't pay for 2 unnecessary `SLOAD` operations per member.
@nkuba nkuba merged commit eb2055d into is-initialized Feb 26, 2020
@nkuba nkuba deleted the is-initialized-optimization branch February 26, 2020 12:21
@pdyraga pdyraga added this to the 0.2.0 milestone Mar 18, 2020
nkuba added a commit that referenced this pull request Mar 20, 2020
Bumping up version for 0.2.0 release

0.2.0 will contain:

    Improve the distinction between leaf positions and leaf values #64
    Function to check if initialization period passed #66
    Reduce the cost of initialization queries during group selection #67
    Fully backed pool #69
    Drop solidity bytes utils dependency #70
    Factory for FullyBackedSortitionPool #71
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
0