busd 0.6 is out, and the pure-Rust D-Bus broker is now as fast as dbus-broker on...

@zeenix@toot.cat

busd 0.6 is out, and the pure-Rust D-Bus broker is now as fast as dbus-broker on method calls and faster on signals: a burst to one subscriber gets through 35% faster, and a broadcast to 20 subscribers 67% faster, with 74% less CPU time. dbus-daemon stays well behind.

Where it comes from:
β€’ busd runs on zruntime rather than Tokio, and on zbus 6.2, with one thread driving the bus and every connection it serves.
β€’ It forwards the messages of each client in batches, writing up to 16 of them to a recipient with one system call.
β€’ It sets the sender of a client's message without building the message anew.

Also in this release:
β€’ Replies reach only the caller waiting for them, and match rules no longer match messages sent to others.
β€’ A client that stops reading is disconnected after 100 ms, rather than freezing the bus, and so is one that sends an invalid message.
β€’ Signals sent to a well-known name reach its owner.

busd is still alpha: it doesn't enforce the policies of its configuration yet, so it must not serve as a system bus.

Release notes: github.com/z-galaxy/busd/relea
Benchmarks: github.com/z-galaxy/busd#perfo
Crate: crates.io/crates/busd

#rustlang #dbus @zbus