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

Cache token weight in _onSwapGivenIn/Out #1769

Merged
merged 7 commits into from
Sep 15, 2022
Merged

Conversation

TomAFrench
Copy link
Contributor

@TomAFrench TomAFrench commented Sep 14, 2022

This saves 6 7 warm reads per swap.

@TomAFrench
Copy link
Contributor Author

6856979 takes us from 28544B back down to 28102B

Copy link
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency explicitooooor

@TomAFrench TomAFrench merged commit ccb2f51 into master Sep 15, 2022
@TomAFrench TomAFrench deleted the normalize-weight-opt branch September 15, 2022 15:31
TomAFrench added a commit that referenced this pull request Sep 15, 2022
* master:
  Cache token weight in _onSwapGivenIn/Out (#1769)
  Fix deployments package (#1773)
  Avoid double zero duration check in `calculateValueChangeProgress` (#1772)
  Extend PoolRegLib (#1770)
TomAFrench added a commit that referenced this pull request Sep 15, 2022
* master:
  Add `ManagedPoolSwapFees` contract (#1755)
  Pull _poolState up into ManagedPool (#1774)
  Adding Foundry support (#1771)
  Cache token weight in _onSwapGivenIn/Out (#1769)
  Fix deployments package (#1773)
  Avoid double zero duration check in `calculateValueChangeProgress` (#1772)
  Extend PoolRegLib (#1770)
  refactor: flatten _doJoin (#1760)
  Removing return values from VaultActions. (#1765)
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.

2 participants