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

blocks: change Block to a value struct #192

Closed
wants to merge 1 commit into from
Closed

blocks: change Block to a value struct #192

wants to merge 1 commit into from

Commits on Mar 3, 2023

  1. blocks: change Block to a value struct

    The goal is to stop doing two allocations for each block (now it will only allocate the `[]byte` buffer, and pass the `cid.Cid, []byte` pair by decomposed registers or stack).
    
    This way of changing does not change the syntax for trivial uses of block.Block, so in theory we will have to update only producers of block.Block, not consumers.
    
    Fixes #57
    Jorropo committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    d8aae0d View commit details
    Browse the repository at this point in the history