Skip to content

Conversation

@0xriptide
Copy link

cache userBalanceUpdatesLength to avoid repeated SLOADs

bool for hasNextUpdate to avoid repeatedly checking array bounds condition

add prevEpochData cache if we need to reuse epoch data between iterations

Loop optimizatioooon:

calculate epoch index once per iteration instead of multiple times

use continue to skip calculations when no eligible shares

add bool for checking if cached previous epoch data exists

cache userBalanceUpdatesLength to avoid repeated SLOADs

bool for hasNextUpdate to avoid repeatedly checking array bounds condition

add prevEpochData cache if we need to reuse epoch data between iterations

Loop optimizatioooon:

calculate epoch index once per iteration instead of multiple times

use continue to skip calculations when no eligible shares

add bool for checking if cached previous epoch data exists
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