-
由 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:
Iñaki Baz Castillo <ibc@aliax.net> Co-authored-by:
Nazar Mokrynskyi <nazar@mokrynskyi.com>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| echo.rs | ||
| multiopus.rs | ||
| readme.md | ||
| svc-simulcast.rs | ||
| videoroom.rs |