Skip to content

Consider transferring binary messages #41

@gmarty

Description

@gmarty

According to benchmarks, transferring binary data is way faster than JavaScript objects.

Maybe we can use a mechanism like protocol buffer to serialise the data to binary, transmit them to another thread and then deserialise them to objects.

There is an unofficial JavaScript port of protocol buffer: https://github.com/dcodeIO/ProtoBuf.js/

It may be overkilling for short messages, but if messages are ususally big, then it can make a change.

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