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

fix: make the empty array CID const and export it #668

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

Stebalien
Copy link
Member

Otherwise, we'll perform a hash in WASM when we first dereference (max once per call) which is just wasteful.

This also fixes the integration tests to use the "correct" empty object. Previously, they were using () which mapped to null, not [].

Otherwise, we'll perform a hash in WASM when we first dereference (max
once per call) which is just wasteful.

This also fixes the integration tests to use the "correct" empty object.
Previously, they were using `()` which mapped to null, not `[]`.
@Stebalien Stebalien merged commit bdfa970 into master Sep 20, 2022
@Stebalien Stebalien deleted the fix/empty-arr-cid branch September 20, 2022 00:31
Stebalien added a commit that referenced this pull request Sep 20, 2022
Otherwise, we'll perform a hash in WASM when we first dereference (max
once per call) which is just wasteful.

This also fixes the integration tests to use the "correct" empty object.
Previously, they were using `()` which mapped to null, not `[]`.
@anorth
Copy link
Member

anorth commented Sep 20, 2022

Thanks. We could use some more of these, like empty HAMT root. FYI @ZenGround0

shamb0 pushed a commit to shamb0/builtin-actors that referenced this pull request Oct 3, 2022
Otherwise, we'll perform a hash in WASM when we first dereference (max
once per call) which is just wasteful.

This also fixes the integration tests to use the "correct" empty object.
Previously, they were using `()` which mapped to null, not `[]`.
shamb0 pushed a commit to shamb0/builtin-actors that referenced this pull request Jan 31, 2023
Otherwise, we'll perform a hash in WASM when we first dereference (max
once per call) which is just wasteful.

This also fixes the integration tests to use the "correct" empty object.
Previously, they were using `()` which mapped to null, not `[]`.
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.

3 participants