From: Chris Down Date: Sat, 1 Aug 2026 01:16:56 +0000 (-0700) Subject: properties: Peek the variant value type once (#43145) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a863b4dc31adc49fdfdd5deba32ed1b115adda3;p=thirdparty%2Fsystemd.git properties: Peek the variant value type once (#43145) 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%. --- 6a863b4dc31adc49fdfdd5deba32ed1b115adda3