summaryrefslogtreecommitdiff
path: root/CODING_STYLE
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-08 12:44:57 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-08 12:49:59 +0200
commit041f793b6b1e4b86edc909b4b2867463b3ef3efd (patch)
treebdf7edc6b57234636c48ddde70db32744c2c1784 /CODING_STYLE
parent8aec6ec510884cbcad7327bead40751ac1b8fd1b (diff)
update CODING_STYLE
Diffstat (limited to 'CODING_STYLE')
-rw-r--r--CODING_STYLE4
1 files changed, 4 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE
index 7fd4af8b87..d373f4dea3 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -342,3 +342,7 @@
- To determine the length of a constant string "foo", don't bother
with sizeof("foo")-1, please use strlen("foo") directly. gcc knows
strlen() anyway and turns it into a constant expression if possible.
+
+- If you want to concatenate two or more strings, consider using
+ strjoin() rather than asprintf(), as the latter is a lot
+ slower. This matters particularly in inner loops.