mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 17:38:42 +00:00
bus_message_print_all_properties() peeks the variant type, but then the print callback and the default bus_print_property() each peek the value type again, so there can be up to two redundant calls per property. Peek it once up front and pass it through. With this, in my tests `systemctl show` over 160 units decreases in instructions retired from 1167.6M to 1155.7M, so about 1%.