[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Tue Jan 14 08:05:32 CET 2014


 src/common.c      |   38 ++++++++++++++++++++------------------
 src/common.h      |   18 ++++++++++--------
 src/utils_cache.c |    2 ++
 3 files changed, 32 insertions(+), 26 deletions(-)

New commits:
commit 23e91d536b2f50d09c1361c697a6db371efcc6c3
Author: Florian Forster <octo at collectd.org>
Date:   Tue Jan 14 07:55:02 2014 +0100

    src/common.[ch]: Rewrite the escape_slashes() function.
    
    Cleaner and slightly more efficient (3.8% faster) version of escape_slashes().
    This function is quite hot with, depending on the configuration, between 1.2%
    and 2.6% of total CPU time spent here.

commit bdfb3f52d9df3ee202d926d1e5473693cc9b9032
Author: Florian Forster <octo at collectd.org>
Date:   Tue Jan 14 07:24:40 2014 +0100

    src/utils_cache.c: Very minor performance improvement.
    
    cache_compare() is one of the hottest functions in collectd. Depending how many
    metrics collectd handles (how deep the tree is) it gets called an order of
    magnitude or two more often than the number of metrics handled. With 100k
    metrics, about 6.6% of the CPU time were spent within cache_compare(), with
    this commit this reduces to 6.3% (that's, uhm, 4.7% faster?).




More information about the collectd-changes mailing list