• José Luis Millán's avatar
    flatbuffers (#1064) · a7d46d81
    由 José Luis Millán 提交于
    Flatbuffers
    
    WIP to remove JSON in favour of flatbuffers for as the worker communication format.
    
    - JSON parsing is CPU intensive.
    - JSON is not type safe.
    - flatbuffers does not parse the buffer. Reading the message takes 0ms.
    - flatbuffers is type safe since code (C++, Typescript, Rust, etc) is autogenerated out of the schema definitions.
    
    Extras that come along with this changes:
    - There is now a single Channel for worker communication.
    - Previously there were 2 (Channel and PayloadChannel)
    - Each message sent Node->Worker requires a single write() call to Channel.
    - Previously 2 calls per message were needed for Channel and 4 for PayloadChannel.
    - Each message sent Worker->Node previously executed two extra calls to memcpy that are not executed now.
    
    ---------
    Co-authored-by: 's avatarIñaki Baz Castillo <ibc@aliax.net>
    Co-authored-by: 's avatarNazar Mokrynskyi <nazar@mokrynskyi.com>
    a7d46d81
RtpHeaderExtensionParameters.cpp 1.3 KB