Skip to content

'msg::handler' interface: allow messages to pass by value #457

@lukevalenty

Description

@lukevalenty

Some embedded architectures, ABIs, message sizes, and compilers may benefit from passing messages by value rather than reference.

For example, in-order RISC processors that can pass the entire message struct by value in registers are a good candidate.

This saves storing the message to memory and retrieving it from memory for each callback.

Benchmarking pass-by-reference vs pass-by-value for an individual use case will still be useful to determine which option is better for that use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions