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

Add PackedDoublyLinkedList #180

Open
ItsNickBarry opened this issue Dec 26, 2022 · 1 comment · May be fixed by #182
Open

Add PackedDoublyLinkedList #180

ItsNickBarry opened this issue Dec 26, 2022 · 1 comment · May be fixed by #182
Assignees

Comments

@ItsNickBarry
Copy link
Member

For some use cases, the doubly linked list (#170) can be optimized by including both prev and next links in the same mapping. This structure can accommodate data sizes of up to bytes16/uint128. It cannot accommodate address.

@ItsNickBarry
Copy link
Member Author

Maybe the following would be a simpler change:

  1. use Bytes32List internally for AddressList and Uint256List, and remove the private list functions
  2. add a Bytes16List to the same library and use it internally for a Uint128List

@ItsNickBarry ItsNickBarry self-assigned this Dec 30, 2022
@ItsNickBarry ItsNickBarry linked a pull request Dec 30, 2022 that will close this issue
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 a pull request may close this issue.

1 participant