Code

src/common.[ch]: Rewrite the escape_slashes() function.
authorFlorian Forster <octo@collectd.org>
Tue, 14 Jan 2014 06:55:02 +0000 (07:55 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 14 Jan 2014 06:55:02 +0000 (07:55 +0100)
commit23e91d536b2f50d09c1361c697a6db371efcc6c3
treed43d40b7ece4ae57aa0b390a7f7b1aede0cefd14
parentbdfb3f52d9df3ee202d926d1e5473693cc9b9032
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.
src/common.c
src/common.h