flatbuffers (#1064)
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:Iñaki Baz Castillo <ibc@aliax.net> Co-authored-by:
Nazar Mokrynskyi <nazar@mokrynskyi.com>
正在显示
Cargo.lock
0 → 100644
差异被折叠。
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
node/.eslintignore
0 → 100644
差异被折叠。
node/src/RtpStream.ts
0 → 100644
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
rust/benches/producer.rs
0 → 100644
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
worker/fbs/audioLevelObserver.fbs
0 → 100644
差异被折叠。
worker/fbs/common.fbs
0 → 100644
差异被折叠。
worker/fbs/consumer.fbs
0 → 100644
差异被折叠。
worker/fbs/dataConsumer.fbs
0 → 100644
差异被折叠。
worker/fbs/dataProducer.fbs
0 → 100644
差异被折叠。
worker/fbs/directTransport.fbs
0 → 100644
差异被折叠。
worker/fbs/log.fbs
0 → 100644
差异被折叠。
worker/fbs/meson.build
0 → 100644
差异被折叠。
worker/fbs/message.fbs
0 → 100644
差异被折叠。
worker/fbs/notification.fbs
0 → 100644
差异被折叠。
worker/fbs/pipeTransport.fbs
0 → 100644
差异被折叠。
worker/fbs/plainTransport.fbs
0 → 100644
差异被折叠。
worker/fbs/producer.fbs
0 → 100644
差异被折叠。
worker/fbs/request.fbs
0 → 100644
差异被折叠。
worker/fbs/response.fbs
0 → 100644
差异被折叠。
worker/fbs/router.fbs
0 → 100644
差异被折叠。
worker/fbs/rtpObserver.fbs
0 → 100644
差异被折叠。
worker/fbs/rtpPacket.fbs
0 → 100644
差异被折叠。
worker/fbs/rtpParameters.fbs
0 → 100644
差异被折叠。
worker/fbs/rtpStream.fbs
0 → 100644
差异被折叠。
worker/fbs/rtxStream.fbs
0 → 100644
差异被折叠。
worker/fbs/sctpAssociation.fbs
0 → 100644
差异被折叠。
worker/fbs/sctpParameters.fbs
0 → 100644
差异被折叠。
worker/fbs/srtpParameters.fbs
0 → 100644
差异被折叠。
worker/fbs/transport.fbs
0 → 100644
差异被折叠。
worker/fbs/webRtcServer.fbs
0 → 100644
差异被折叠。
worker/fbs/webRtcTransport.fbs
0 → 100644
差异被折叠。
worker/fbs/worker.fbs
0 → 100644
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
请
注册
或者
登录
后发表评论