Skip to content

Optimized reading payload #959

Open
Open
@techraed

Description

@techraed

Instead of reading the whole payload and having issue with staticness and move semantics, we can read the payload partially using the demanded parts in corresponding parts of the code.
The received payload has encoded contract (SERVICE_ROUTE-METHOD-PARAMS). The params part can be the heaviest, while the first two are pretty small. What's more we know in advance the size of the first two. So we can just read the first two into arrays with statically defined sizes and use it in-place. But read params only when demanded.
This will allow to avoid clones from the #939

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