diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 08:46:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 08:46:45 +0200 |
commit | 015d17ca70e81ad998e32cdfeed3cd925fd7dedc (patch) | |
tree | 9e4a547346b72709551b2122f67a158812330fe0 /runtime/rsyslog.h | |
parent | e893a5916473c45d6b90dc2401637fe713133291 (diff) | |
download | rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.tar.gz rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.tar.xz rsyslog-015d17ca70e81ad998e32cdfeed3cd925fd7dedc.zip |
some performance optimizations
- saved gettimeofday() calls in imtcp (and increased reception buffer)
- somewhat optimized stringbuf.c
- some other optimizations
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r-- | runtime/rsyslog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index ea303a51..32177a9f 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -103,6 +103,8 @@ typedef unsigned int u_int32_t; /* TODO: is this correct? */ typedef int socklen_t; #endif +typedef char bool; /* I intentionally use char, to keep it slim so that many fit into the CPU cache! */ + /* settings for flow control * TODO: is there a better place for them? -- rgerhards, 2008-03-14 */ |