libctf: having debugging enabled is unlikely
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 20:00:35 +0000 (21:00 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:34 +0000 (17:57 +0100)
commit5ec7465fec8bceb477732d6757112fe162116eb8
tree53501c491c9e75c45e70d2e80c51f6ee1662b609
parent601e455b758b7075d3027c030b9bd60f7b7face5
libctf: having debugging enabled is unlikely

The deduplicator can emit enormous amounts of debugging output,
so much so that a later commit will introduce a new configure flag
that configures most of it out (and configures it out by default).

It became clear that when this configure flag is on, but debugging is
not enabled via the LIBCTF_DEBUG environment variable, up to 10% of
runtime can be spent on branch mispredictions checking the _libctf_debug
variable.  Mark it unlikely to be set (when it is set, performance is
likely to be the least of your concerns).

libctf/
* ctf-subr.c (ctf_dprintf): _libctf_debug is unlikely to be set.
libctf/ChangeLog
libctf/ctf-subr.c
This page took 0.027093 seconds and 4 git commands to generate.