summaryrefslogtreecommitdiff
path: root/src/basic/strxcpyx.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-19 21:30:14 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-20 08:58:53 -0400
commitae5b39588734aacef5b6b411cf2053fdcef4764a (patch)
tree27eeddf1f641a5f71690e4e4bcc99d43c2e504aa /src/basic/strxcpyx.h
parent0c1792efe422622c3c8a11b70a722147304da4cb (diff)
basic/terminal-util: cache value for colors_enabled
After all it's something that we query over and over. For example, systemctl calls colors_enabled() four times for each failing service. The compiler is unable to optimize those calls away because they (potentially) accesses external and global state through on_tty() and getenv().
Diffstat (limited to 'src/basic/strxcpyx.h')
0 files changed, 0 insertions, 0 deletions