Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Memoization of size in the 3-heap#84

Merged
QGarchery merged 3 commits intofeat/three-heapfrom
feat/three-heap-size-memo
Nov 11, 2022
Merged

Memoization of size in the 3-heap#84
QGarchery merged 3 commits intofeat/three-heapfrom
feat/three-heap-size-memo

Conversation

@QGarchery
Copy link
Copy Markdown
Collaborator

Also reorders arguments to have heap then size (the initial state), and the the specific arguments of the functions like _id or _value.

@QGarchery QGarchery changed the base branch from main to feat/three-heap November 11, 2022 17:03
@QGarchery QGarchery self-assigned this Nov 11, 2022
Copy link
Copy Markdown
Contributor

@MerlinEgalite MerlinEgalite left a comment

Choose a reason for hiding this comment

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

It would be nice to have a gas comparison since it's difficult to know if it saves gas or not. (I think so but not sure)

Copy link
Copy Markdown
Collaborator

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

LGTM. This would be a great use of Transient storage, in the future.

@QGarchery QGarchery mentioned this pull request Nov 11, 2022
@MathisGD
Copy link
Copy Markdown
Collaborator

Capture d’écran 2022-11-11 à 18 30 43

@MerlinEgalite
Copy link
Copy Markdown
Contributor

LGTM. This would be a great use of Transient storage, in the future.

Yep, however, I'm not sure you can do it with a struct and a lib...

@QGarchery QGarchery merged commit 0fbfe41 into feat/three-heap Nov 11, 2022
@QGarchery QGarchery deleted the feat/three-heap-size-memo branch November 11, 2022 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants