Skip to content

Pass node.message string by reference  #3

@SunitRaut

Description

@SunitRaut

Instead of moving node.message to char sendbuffer[], pass node.message by reference to send() and sendWithRetry() to save space consumed by sendbuffer[].
61 bytes can be saved.

At the same time, we need to take care because in networkMode, if sendbuffer[] is eliminated, node.message will be modified and user won't be aware of this, leading to unexpected behaviour for the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions