Skip to content

Customisable shuffling cache size#4007

Closed
AgeManning wants to merge 6 commits intosigp:unstablefrom
AgeManning:rp-cache
Closed

Customisable shuffling cache size#4007
AgeManning wants to merge 6 commits intosigp:unstablefrom
AgeManning:rp-cache

Conversation

@AgeManning
Copy link
Copy Markdown
Member

This PR enables the user to adjust the shuffling cache size.

This is useful for some HTTP API requests which require re-computing old shufflings. This PR currently optimizes the
beacon/states/{state_id}/committees HTTP API by first checking the cache before re-building shuffling.

If the shuffling is set to a non-default value, then the HTTP API request will also fill the cache when as it constructs new shufflings.

If the CLI flag is not present or the value is set to the default of 16 the default behaviour is observed.

@AgeManning AgeManning added the ready-for-review The code is ready for review label Feb 20, 2023
@AgeManning AgeManning closed this by deleting the head repository Feb 22, 2023
@AgeManning AgeManning reopened this Feb 22, 2023
@AgeManning AgeManning added the v4.0.0 Mainnet Capella release expected late March 2023 label Mar 14, 2023
@AgeManning AgeManning changed the base branch from unstable to stable March 14, 2023 03:14
@AgeManning AgeManning changed the base branch from stable to unstable March 14, 2023 03:14
@AgeManning
Copy link
Copy Markdown
Member Author

Closed in favour of #4081

@AgeManning AgeManning closed this Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review The code is ready for review v4.0.0 Mainnet Capella release expected late March 2023

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant