author | Florian Forster <octo@collectd.org> | |
Fri, 19 Jul 2013 05:39:47 +0000 (07:39 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 7 Aug 2013 05:54:43 +0000 (07:54 +0200) | ||
commit | 21ef84928de2910c3b41fad156afbbf3d0075e7c | |
tree | 12c617a37c13227ca8d9848d1082d6bdf6003f9f | tree | snapshot |
parent | 9b022ebf40a1a49bedf5992e6542c1c0b6a62c13 | commit | diff |
rrdtool plugin: Minor performance improvement.
Replace the value_list_to_string() function with a version which is optimized
for data sets with a single data source. The original function is still used
for data sets with multiple data sources. This allows to reduce the number of
calls to snprintf() in this (very common) case, resulting in ~2% speedup.
Replace the value_list_to_string() function with a version which is optimized
for data sets with a single data source. The original function is still used
for data sets with multiple data sources. This allows to reduce the number of
calls to snprintf() in this (very common) case, resulting in ~2% speedup.
src/rrdtool.c | diff | blob | history |