zbus 6.2 is out: a performance release of the pure-Rust D-Bus library. Decoding ...
zbus @zbus@toot.cat
zbus 6.2 is out: a performance release of the pure-Rust D-Bus library. Decoding a received message takes under a fifth of the time it did, and a burst of small signals between two zbus peers on a Unix socket gets through 2.7 times as fast.
Where it comes from:
• zbus reads ahead on the sockets it drives, so one read can bring in many messages, where each took two or three.
• Message headers are parsed in one pass, with winnow rather than serde, and signatures with fewer allocations.
• The new `Connection::send_all` writes up to 16 messages with each system call, which makes that burst over six times as fast as on 6.1.
Also in this release:
• Received messages are checked more strictly against the specification.
• With the `bus-impl` feature, a bus built on zbus can check each message body against its signature, and set senders without rebuilding messages.
• `#[interface]` methods can take `&[u8]` again, and property setters with lifetime parameters compile again, as before 6.0.
Release notes: https://github.com/z-galaxy/zbus/releases/tag/zbus-6.2.0
Crate: https://crates.io/crates/zbus