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

MorphoLib perf and test #384

Merged
merged 4 commits into from
Aug 20, 2023
Merged

MorphoLib perf and test #384

merged 4 commits into from
Aug 20, 2023

Conversation

MathisGD
Copy link
Contributor

@MathisGD MathisGD commented Aug 20, 2023

perf: use extSload in MorphoLib to avoid loading the whole Market struct from storage

Fixes #375

Fixes #383

@MathisGD MathisGD self-assigned this Aug 20, 2023
@MathisGD MathisGD changed the title Perf MorphoLib MorphoLib perf and test Aug 20, 2023
@MathisGD MathisGD requested review from a team, Rubilmax, MerlinEgalite, pakim249CAL, Jean-Grimal, makcandrov, QGarchery and peyha and removed request for a team August 20, 2023 09:55
@MathisGD MathisGD marked this pull request as ready for review August 20, 2023 09:56
QGarchery
QGarchery previously approved these changes Aug 20, 2023
Copy link
Contributor

@QGarchery QGarchery left a comment

Choose a reason for hiding this comment

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

LGTM, a couple of optional changes

src/libraries/periphery/MorphoLib.sol Outdated Show resolved Hide resolved
test/forge/periphery/MorphoLib.t.sol Show resolved Hide resolved
MerlinEgalite
MerlinEgalite previously approved these changes Aug 20, 2023
src/libraries/periphery/MorphoLib.sol Show resolved Hide resolved
@MathisGD MathisGD merged commit 6a733ad into main Aug 20, 2023
4 checks passed
@MathisGD MathisGD deleted the feat/375 branch August 20, 2023 17:18
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.

MorphoLib is not tested Create simple market getters without loading the whole market in memory
4 participants